為什么我這個(gè)點(diǎn)取消還會(huì)出現(xiàn)網(wǎng)頁(yè)?
<!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 mymessage=confirm("確認(rèn)打開(kāi)網(wǎng)址?");
? ? ? ?if(mymessage=true){
? ? ? ? ? ?window.open('http://idcbgp.cn','_blank','width=400,height=500,menubar=no,toolbar=no');
? ? ? ?}
? ? ? ?else
? ? ? ?{
? ? ? ? ? ?alert("打開(kāi)失??!");
? ? ? ?}
? ? ? } ? ?
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開(kāi)網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2015-06-15
if(mymessage=true) ? 看看這判斷語(yǔ)句寫(xiě)的對(duì)嗎?