function openWindow() { var open=confirm("新窗口打开网页?"); if(open==ture){var url=prompt("通过输入对话框,确定打开的网址","http://www.imooc.com");if (nul!=null){window.open(url,"_blank",'witdh=400px,height=500px');}else{alert("再见!");}}else{alert("再见!");}}
添加回答
举报
0/150
提交
取消