為什么我這個點取消還會出現網頁?
<!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("確認打開網址?");
? ? ? ?if(mymessage=true){
? ? ? ? ? ?window.open('http://www.xianlaiwan.cn','_blank','width=400,height=500,menubar=no,toolbar=no');
? ? ? ?}
? ? ? ?else
? ? ? ?{
? ? ? ? ? ?alert("打開失?。?);
? ? ? ?}
? ? ? } ? ?
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網站" onclick="openWindow()" />?
?</body>
</html>
2015-06-15
if(mymessage=true) ? 看看這判斷語句寫的對嗎?