1. 程式人生 > >鼠標經過事件(onmouseover)

鼠標經過事件(onmouseover)

word form message doctype func bsp utf-8 over use

<!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>

鼠標經過事件(onmouseover)