求大神幫忙!?。槭裁袋c(diǎn)擊沒反應(yīng)?
<!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 sss;
? ? var aaa;
? ? aaa = comfirm("是否打開新窗口?");
? ? if (aaa == true)
? ? {
? ? ? ? sss = prompt("是否打開百度?","http://www.baidu.com");
? ? ? ? window.open('sss','_blank','width=400,height=500,menubar=no,toolbar=no');
? ? }
? ? else
? ? {
? ? ? ? alert("誤操作!請(qǐng)重新選擇!");
? ? }
? }
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2019-07-26
?緩存清下,comfirm打錯(cuò)了