第三個為什么運行不了
<!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 open=confirm("確定打開新網頁嗎?");
if(open==ture)
? ? // 新窗口打開時彈出確認框,是否打開
{
? ? var abcd=prompt("輸入并確認打開的網址",http://www.xianlaiwan.cn/);
? ? if(abcd!=null)
? ? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
{window.open(ancd,"-blank",'width=400px,hheight=500px,menabar=no,toolbar=no');}
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
?else{alert("再見")}?
}
else{alert("再見")}?
} ? ?
? </script>?
?</head>?
2015-04-14