不知道對不對
function openWindow(){ ? ? ? ? ? ? ? ?//var s=prompt("請輸入網(wǎng)址,如http://idcbgp.cn/") ? ? ? if(!confirm("確認打開?")){ ? ? ? } ? ? ? ? ? ? ? ? ? window.open('http://www.baidu.com','','width=400,heigth=500,menubar=no,toolbar=no,') ? ? ? ?}
2016-01-04
舉報
2016-01-04
function openWindow()
? ? {
? ? ? ??
? ? ? ??
? ? ? ?if(confirm("確認打開?"))
? ? ? ?{
? ? ? ? ? ?if(s==null)
? ? ? ? ? ?{
? ? ? ? ? ? ? ?var s=prompt("請輸入網(wǎng)址,如http://idcbgp.cn/",'http://idcbgp.cn');
? ? ? ? ? ? ? ?window.open(s,'_blank','width=400,heigth=500,menubar=no,toolbar=no,');?
? ? ? ? ? ?}
? ? ? ? ? ?else
? ? ? ? ? ?{
? ? ? ? ? ? ? ?alert('再見!');
? ? ? ? ? ?}
? ? ? ?}
? ? ? ??
? ? ? ? ? ?
? ? }
2016-01-04
不懂再問我!!
2016-01-04
//應(yīng)該這樣吧?
function openWindow(){
? ? ? ? if(confirm("是否打開新的窗口"))
? ? ? ? {
? ? ? ? ? ? var url = prompt("請輸入新的網(wǎng)址","http://idcbgp.cn/");
? ? ? ? ? ? if(url!=null){
? ? ? ? ? ? ? ? window.open(url,"_blank","weith=400.height=500,menubar=no,toolbar=no"); ? ?
? ? ? ? ? ? }
? ? ? ? }
? ? }
2016-01-04
不對