为什么写了else 网页还是会被打开?
<script type="text/javascript">
function openWindow(){
var myMessage=confirm("是否要打开新的窗口?")
if(myMessage=true){
window.open('http://172.16.143.120/new_www/en/main/index.html','_blank','width=600,height=400,top=100,left=0')
}
else{ myMessage.close();
}
}
</script>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />