調(diào)試不出來(lái),幫我看看是怎么回事吧、、、謝謝、!
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ??
? <script type="text/javascript"> ?
? ? ? ? ? ? ?function openWindow(){
? ? ? ? var bianliang=confirm("是否打開(kāi)新窗口?");
? ? ? ? if(bianliang==true){
? ? ? ? ? ? var bianliang2=prompt("通過(guò)輸入對(duì)話框,確定打開(kāi)網(wǎng)址","http://idcbgp.cn/");
? ? ? ??
? ? ? ? if(bianliang2!=null){
? ? ? ? ? ? window.open('http://idcbgp.cn/','_la','width=400px,height=500px,menubar=no,toolbar=no');
? ? ? ? ?else{alert("再見(jiàn)!");
? ? ? ? ?}
? ? ? ? else{alert("再見(jiàn)!");
? ? ? ? }
? ? ? ? }
? ?
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開(kāi)網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2015-03-26
?? ? var bianliang=confirm("是否打開(kāi)新窗口?"); ?這句話后分號(hào)用英文輸入