Code
Execute
<!DOCTYPE html> <html> <head> <title>html tutorial - html5 - html code - html form - In 30Sec by Microsoft Award MVP - | wikitechy onresize attribute</title> </head> <body onresize="onResize()"> <p>Try to resize the browser window.</p> <script> function onResize() { alert("You have changed the size of the Wikitechy window!"); } </script> </body> </html>
Result