為什么點(diǎn)擊確定和取消都出來(lái)的是404錯(cuò)誤界面呀,求指教
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>js常用的互動(dòng)方法</title>
<script type="text/javascript">
function openWindow()
? {var mymessage=confirm("是否打開(kāi)新的界面");
? if("mymessage==true"){
window.open('http://baidu.com/','_blank','width=400','height=500','menusbar='no','toolbar='no');
}
? else{document.write("已取消");}
? }
</script>
</head>
<body>
<input name="button" type="button" onclick="openWindow()" value="點(diǎn)擊進(jìn)入慕課網(wǎng)" />
</body>
</html>
2019-02-12
找到了。。。低級(jí)錯(cuò)誤