鼠標移開事件(onmouseout)
任務
補充右邊編輯器第12行,當鼠標移開"點擊我"的按鈕時,調用message()函數,彈出消息對話框。
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鼠標移開事件 </title>
<script type="text/javascript">
function message(){
alert("不要移開,點擊后進行MK網!"); }
</script>
</head>
<body>
<form>
<a href="http://www.imooc.com" onmouseout="message()">點擊我</a>
</form>
</body>
</html>


