Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <meta charset="utf-8"> <title>本教程(w3big.com)</title> <head> <script> function showMsg() { alert("您已经更改了浏览器窗口的大小!"); } </script> </head> <body onresize="showMsg()"> <p>调整浏览器窗口。</p> </body> </html>