JavaScript マウスオーバー イベント (onmouseover)
Mouseover イベント。マウスがオブジェクト上に移動(dòng)すると、オブジェクトは onmouseover イベントをトリガーし、onmouseover イベントによって呼び出されるプログラムを?qū)g行します。
例: onmouseover イベントにバインドされた要素にマウスを移動(dòng)すると、ダイアログ ボックスが表示されます
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> <script> function fun(){ window.alert("請(qǐng)確認(rèn)四周沒有人再點(diǎn)擊提交") } </script> </head> <body> <form> 機(jī)密: <input name="txt" type="text" > <input name="" type="button" value="提交" onmouseover="fun()"/> </form> </body> </html>