function oPen(){
var mywin=window.open('http://www.xianlaiwan.cn','_blank','width=600','height=400','top=100','left=0');
}
mywin.close()
<input type="button" value="打開" onClick="oPen()"/>
<input type="button" value="關閉" onClick="mywin.close()"/>
廣告模式打開,關閉
var mywin=window.open('http://www.xianlaiwan.cn','_blank','width=600','height=400','top=100','left=0');
}
mywin.close()
<input type="button" value="打開" onClick="oPen()"/>
<input type="button" value="關閉" onClick="mywin.close()"/>
廣告模式打開,關閉
2016-07-04
function openWindow(){
var mymessage=confirm("是否打開新的網站?");
if(mymessage==true){
var url=prompt("請輸入一個網址:","http://www.xianlaiwan.cn/");
window.open(url,'_blank','width=400px,height=500px,menubar=no,toolbar=no');
}
}
var mymessage=confirm("是否打開新的網站?");
if(mymessage==true){
var url=prompt("請輸入一個網址:","http://www.xianlaiwan.cn/");
window.open(url,'_blank','width=400px,height=500px,menubar=no,toolbar=no');
}
}
我一直在想這個代碼寫出來怎么沒有反應,莫不是我弄錯了?
……一看右上角“阻止了此網站彈出的10個窗口”
恍然大悟
……一看右上角“阻止了此網站彈出的10個窗口”
恍然大悟
2016-07-03