function openWindow(); var mymessage=confirm(“確定打開新窗口嗎”); if(mymessage==true) { window.open('http//www.xianlaiwan.cn','_blank','width=400,height=500,menubar=no,toolbar=no, status=no,scrollbars=yes');
function openWindow(); var mymessage=confirm(“確定打開新窗口嗎”); if(mymessage==true) { window.open('http//www.xianlaiwan.cn','_blank','width=400,height=500,menubar=no,toolbar=no, status=no,scrollbars=yes');
2016-05-19
function openWindow(){
? ? ? ?var mymessage=confirm(“確定打開新窗口嗎”);?
? ? ? ?if(mymessage==true)?
? ? ? {?
? ? ? ? ? ? ?window.open('http//www.xianlaiwan.cn','_blank','width=400,height=500,menubar=no,toolbar=no, status=no,scrollbars=yes');
? ? ? ?}
}
我覺得是這樣子,
注意下格式和標點符號。