<!DOCTYPE html> <html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <script type="text/javascript"> function openWindow() { var confm=confirm("确认打开新窗口?"); if(confm==true){ var def=prompt("请输入网站:"," http://www.imooc.com/ "); window.open(def,'_blank','width=400,hight=500,menubar=no,toolbar=no') } } </script> </head> <body> <input type="button" value="新窗口打开网站" onclick="openWindow()" /> </body> </html>
雨果_0001
2014-10-20
0 回答
举报
0/150
提交
取消