<!DOCTYPE html> <html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <script type="text/javascript"> function openWindon() { var strUrl=confirm("確定打開嗎?"); if(stUrl=true) { var opUrl=prompt("再次輸入打開的網址","http://www.xianlaiwan.cn/"); //再次判斷輸入框內是否存在數據,存在繼續打開窗口,否則關閉當前窗口 if(opUrl!="") { window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500,menubar=no ,toolbar=no'); } else { } } } </script> </head> <body> <form> <input type="button" value="新窗口打開網站" onclick="openWindon()" /> </form> </body> </html>

風起270495
2014-08-19
舉報
0/150
提交
取消