编辑下面的代码:【加编码】
<html> <head> <script> function resizeWindow() { top.resizeBy(100,100); } </script> </head> <body> <form> <input type="button" onclick="resizeWindow()" value="Resize window"> </form> <p><b>Note:</b> We have used the <b>top</b> element instead of the <b>window</b> element, because we use frames. If you do not use frames, use the <b>window</b> element instead.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂