JavaScript鼠標(biāo)移開事件(onmouseout)
鼠標(biāo)移開事件,當(dāng)鼠標(biāo)移開當(dāng)前對象時(shí),執(zhí)行onmouseout調(diào)用的程序。
改造我們的上一個(gè)例子:
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> <script> function fun(){ window.alert("提交成功了") } </script> </head> <body> <form> 機(jī)密: <input name="txt" type="text" > <input name="" type="button" value="提交之后移開鼠標(biāo)" onmouseout="fun()"/> </form> </body> </html>
張
onmoseout 鼠標(biāo)移開
7年前 添加回復(fù) 0