JavaScript ?? ??? ?? ?? ???(onblur)
?? ?? ??? ???(onblur)
onblur ???? onfocus? ?? ??? ??????. ??? ????? ???? ?? ?? ??? ??? ??? onblur ????? ?????.
?? ???? ??? ?? ? ??? ?????? ??? ???? ??? ? ????.
<!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> 姓名: <input name="username" type="text" value="請輸入姓名" onblur="fun()" > </form> </body> </html>