<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> 鼠標經過事件 </title> <script type="text/javascript"> function message(){ confirm("請輸入密碼后,再單擊確定!"); } </script> </head> <body> <form> 密碼:<input name="password" type="password" > <input name="確定" type="button" value="確定" onmouseover="message()"/> </form> </body> </html>