哪里錯了,求大神看看
function openWindow()
? var open=confirm("新窗口打開網(wǎng)站嗎");
? if (open==ture){
? ? ? var webbar=prompt("通過輸入對話框,確定打開的網(wǎng)址","默認(rèn)為 http://idcbgp.cn/");
? ? ?if (webbar!=null){
? ? ? ? ?window.open(webbar,'_blank','width=400px','height=500px''meanubar=no''toolbar=no');
? ? ?}
? ? ?else{
? ? ? ? ?alert(GG1);
? ? ?}
? ? ?else{
? ? ? ? ?alert(GG2);
? ? ?}
? ? ?
? ? ?}
2016-07-18
function openWindow()后面的代碼沒有用{}括起來,
'width=400px','height=500px''meanubar=no''toolbar=no',使用,號分割,
if...else...嵌套有問題,
GG1和GG2沒有定義
2016-07-18
function openWindow()后面是不是少了個(gè){