点确认后没有出现输入网址的对话框
<!DOCTYPE html> <html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <script type="text/javascript"> function openWindow(){ if(confirm("是否新建窗口打开网站?")){ var url = propmt("请输入您要打开的网址","http//www.imooc.com/"); window.open( url_,"black","member=no, toolbar=no, scrollbars=no, width=400, height=500"); } } </script> </head> <body> <input type="button" value="新窗口打开网站" onclick="openWindow()" /> </body> </html>
点确定后没有出现输入网址的对话框,什么原因?