为啥鼠标移开没反应?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <html> <head> <meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" /> <title>鼠标移开事件 </title> <script type= "text/javascript" > function message(){ alert( "不要移开,点击后进行慕课网!" ); } </script> </head> <body> <form> <a href= "http://www.imooc.com" onmouseout= "message()" >点击我</a> </form> </body> </html> |