简单答案,仅供参考
function openWindow(){ var open; var mymessage; mymessage = confirm("是否打开新网页?") if(mymessage) { open = prompt("请输入网址:","http://www.imooc.com/") window.open(open,"_blank","width = 400,height = 500,") } }
function openWindow(){ var open; var mymessage; mymessage = confirm("是否打开新网页?") if(mymessage) { open = prompt("请输入网址:","http://www.imooc.com/") window.open(open,"_blank","width = 400,height = 500,") } }
2016-11-08
举报