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