求大神們指導(dǎo)事件
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>onmouseout</title>
<script type="text/javascript
">
function message (){
?? ?confirm("不要離開,只要輸入密碼,再單擊登錄,就OK了!");}
</script>
</head>
<body>
<form>
?密碼:<input name="password" type="text">
<input name="button" type="button" value="登錄" onmouseout"message()"/>
</form>
</body>
</html>
為什執(zhí)行結(jié)果不是下圖了???????
2016-12-18
input標(biāo)簽里,onmouseout="message()"才對
2016-12-18
在input中,換成onmouseout="message()"試試