為什么沒反應(yīng)
<!DOCTYPE html>
<html>
<head>
<title> new document </title> ?
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ?
<script type="text/javascript"> ?
// 新窗口打開時(shí)彈出確認(rèn)框,是否打開
// 通過(guò)輸入對(duì)話框,確定打開的網(wǎng)址,默認(rèn)為 http://idcbgp.cn/
//打開的窗口要求,寬400像素,高500像素,無(wú)菜單欄、無(wú)工具欄
function openwindow(){
var openwindow = confirm('確定打開新窗口');
if (openwindow = true){
var a = prompt('通過(guò)輸入對(duì)話框,確定打開的網(wǎng)址,默認(rèn)為','http://idcbgp.cn/');
if(a){
window.open(a,'_black','wieth = 400, height = 500, menubar = no, toolbar = no' )
}eles{
alert("88");
}
}else{
alert("再見")
}
}
</script>
</head>
<body>
???? ?<input type="button" value="新窗口打開網(wǎng)站" onclick="openwindow()" />
</body>
</html>
2019-05-15
你第二個(gè)if語(yǔ)句判斷條件在哪啊,就一個(gè)a,怎么可能打開得了