為什么點擊不會出現(xiàn)框
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>請與我互動</title>
<script>
function openWindow(){
var judge=confirm('要新窗口打開網(wǎng)址嗎?');
var shufu;
if(judge==true)
{
shufu=prompt("請輸入網(wǎng)址","http://idcbgp.cn/");
window.open(shufu.'_blank','height=400,width=500,menubar=no,toolbar=no');
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
</body>
</html>
2016-08-16
好深的套路!
2016-08-12
這是正確的,具體錯誤自己找吧