為何彈出確認框點擊確認后沒有打開慕課網頁???
?function?openWindow()
????{
??????????var?mymess=confirm("確認打開慕課網?");
??????????if(mymess==ture)
??????????{
????????window.open('http://imooc.com','_blank',width=400,height=500,menubar=no,toolbar=no');
??????????}
????}
????
??</script>?
?</head>?
?<body>?
??<input?type="button"?value="新窗口打開網站"?onclick="openWindow()"?/>?
?</body>
2016-01-22
ture --> true
,width=400,height=500,menubar=no,toolbar=no'?
-->
,'width=400,height=500,menubar=no,toolbar=no'?