这样对吗?
function openWindow() { var write; var k_open=confirm("你确定打开吗?"); if(k_open==ture) { write=prompt("请输入您要打开的网址:""http: //www.imooc.com/") } else { k_open.close(); } window.open(k_open,'_blank'.'width=400,height=500,menubar=no,toolbar=no'); }
function openWindow() { var write; var k_open=confirm("你确定打开吗?"); if(k_open==ture) { write=prompt("请输入您要打开的网址:""http: //www.imooc.com/") } else { k_open.close(); } window.open(k_open,'_blank'.'width=400,height=500,menubar=no,toolbar=no'); }
2016-08-16
举报