维科纳蒂 »
×
改变方向
在 Codepen 上打开
更改主题,深色/浅色
<!DOCTYPE html> <html> <head><meta http-equiv="content-security-policy" content="script-src 'none'"> <script> var myWindow; function openWin() { myWindow = window.open("", "", "width=400, height=200"); } function closeWin() { myWindow.close(); } </script> </head> <body> <input type="button" value="Відкрити 'myWindow'" onclick="openWin()" /> <input type="button" value="Закрити 'myWindow'" onclick="closeWin()" /> </body> </html>