Execute a script when the browser window is being resized in HTML?

When the web browser window is resized, the onresize attribute triggers.

Example

You can try to run the following code to implement onresize attribute ?


   
      

Resize the window to trigger event.

         
Updated on: 2020-05-30T23:28:32+05:30

321 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements