<!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 res = confirm("要打开网页吗?"); if(res) { var _open; _open = prompt("想打开那个网页","www.baidu.com"); window.open(_open,'_black','width=400,height=500,manubar=no,toolbar=no');} } </script> </head> <body> <input type="button" value="新窗口打开网站" onclick="openWindow()" /> </body></html>
添加回答
举报
0/150
提交
取消