哪里錯(cuò)了?求指點(diǎn)
<!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 open1=conform("新窗口打開網(wǎng)站");
if(open=ture)
? ? {var open2=prompt("請輸入您要打開的網(wǎng)址:","http://www.baidu.com");
? ? ?if(open2=ture)
{window.open("open",_blank","width=400,height=500,menubar=no,toobar=no");
}
? ? }
? ? }
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2015-05-18
open1==true ??open2==true