function openWindow(){ var open; var temp=confirm("是否要打开新的网页?"); if(temp) { open=prompt("请输入你要打开的网址:","http://www.imooc.com/"); if(open != null){ window.open('http://www.imooc.com/','_blank','width=400,height=500,menubar=no,toolbar=no'); } } }
.......