W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <script type="text/javascript"> function closeWin() { myWindow.close() } </script> </head> <body> <script type="text/javascript"> myWindow=window.open('','','width=200,height=100') myWindow.document.write("This is 'myWindow'") </script> <input type="button" value="Close 'myWindow'" onclick="closeWin()" /> </body> </html>