qq_心随风动_0
2015-08-24 23:12
求完整的答案代码
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>close()</title> <script type="text/javascript"> var mywin; function Open(){ mywin=window.open("http://www.imooc.com"); } function Close(){ mywin.close(); } </script> </head> <body> <input type="button" value="打开" onclick="Open()" > <input type="button" value="关闭" onclick="Close()" > </body> </html>
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>close()</title> <script type="text/javascript"> var mywin=window.open("http://www.imooc.com"); mywin.close(); </script> </head> <body> </body> </html>
JavaScript入门篇
741119 学习 · 9865 问题
相似问题