哪里有問題啊,真看不懂了
<!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 hh=confirm("是否進入新窗口");
? ? if(hh=true)
? ? {
? ? ? ? var gg=prompt("是否進入網(wǎng)址呢?","http://idcbgp.cn")
? ? ? ? if(gg=null)
? ? ? ? {
? ? ? ? ? ? alert(gg);
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ? window.open("http://idcbgp.cn","_blank","width=400,height=500,menubar=no,toolbar=no");
? ? ? ? }
? ? }
? }?
?</script>?
?</head>?
?<body>?
?<center>?
?<input name="button" type="button" onClick="openWindow()" value="點擊我,打開新窗口!" / >
?</center>
?</body>
</html>
2020-04-07
if條件判斷用==,檢查下你的標點符號是不是在英文狀態(tài)