![]() |
VOOZH | about |
The HTML DOM onresize event occurs on the browser window resize. Only the <body> tag support this event. To get the size of the window use:
In HTML:
<element onresize="myScript">In JavaScript:
object.onresize = function(){myScript};In JavaScript, using the addEventListener() method:
object.addEventListener("resize", myScript);