這段代碼哪里有問(wèn)題呢?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鼠標(biāo)移開(kāi)事件 </title>
<script type="text/javascript">
? function message(){
? ? alert("不要移開(kāi),點(diǎn)擊后進(jìn)行慕課網(wǎng)!");?
? ? }
? ??
? function newpage(){
? ? var newlinl=window.open("http://www.hao123.com" "_blank" "width=500px,height=400px")
? ? }
</script>
</head>
<body>
? <input type="button" value="hao123" title="點(diǎn)擊進(jìn)入hao123" ? onclick="newpage()">
? <form>
? ? <br />
? ? <a href="http://yifanck.cn" onmouseout="message()">點(diǎn)擊我</a>
? </form>
</body>
</html>
2016-07-05
2016-07-05
<title>鼠標(biāo)移開(kāi)事件 </title>
<script type="text/javascript">
? function message(){
? ? alert("不要移開(kāi),點(diǎn)擊后進(jìn)行慕課網(wǎng)!");?
? ? }?
? function newpage(){
? ? ?window.open('http://www.hao123.com' , '_blank' , 'height=500,width=400');
}
</script>
</head>
<body>
<input type="button" value="hao123" onclick="newpage()"/>
?<form>
? ? <br />
? ? <a href="http://yifanck.cn" onmouseout="message()">點(diǎn)擊我</a>
? </form>
</body>
</html>