求指點(diǎn)啊, 找了半天不知道哪里錯(cuò)了,點(diǎn)不開
?
?function openwindow()
? {var open=confirm("新窗口打開時(shí)彈出確認(rèn)框"); ??
? ?if(open=true)?
? //新窗口打開時(shí)彈出確認(rèn)框,是否打開
? ?{var url=prompt{"通過輸入對話框,確定打開的網(wǎng)址","默認(rèn)為http://idcbgp.cn/"};
? ? // 通過輸入對話框,確定打開的網(wǎng)址,默認(rèn)為 http://idcbgp.cn/
? if(url!=null)
? { window.open('url','width=400px', 'height=500px','menubar=no','toolbar=no',)}
? ?else{document.write(再見)}
? ?else{document.write(再見)}
? ?}
2015-05-16
2015-05-16
=是賦值....== 是比較