老師,我這種編法哪里出錯了?
<!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 one=confirm("確定嗎?");
? ? if(one==true){
window.open('http://www.xianlaiwan.cn/','_blank','width=400px,height=500px,menubar=no,toolbar=no,scrollbars=yes,status=yes');
}
else
document.write("nothing");
}
? </script>?
?</head>?
?<body>?
? ? ? <input type="button" value="新窗口打開網站" onclick="openWindow()" />?
?</body>
</html>
2015-02-26
其實我習慣性把輸入法 "Shift"設置成 "Ctrl" 切換中英輸入
2015-02-25
剛幫你看了 是這句話?var one=confirm("確定嗎?");后面的分號寫錯了