<!DOCTYPE HTML> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title> 失焦事件 </title> <script type="text/javascript"> function message(){ alert("请确定已输入密码后,在移开!"); } function add(){ alert("请输入我爱你"); } </script> </head> <body> <form> 用户:<input name="username" type="text" value="请输入用户名!" onfocus="add()" ><br> 密码:<input name="password" type="text" value="请输入密码!" onblur="message()"> </form> </body> </html>
数据分析师2017-09-30 23:08:15
Look at what’s wrong. Why doesn’t the dialog box pop up? -PHP Chinese website Q&A-Please take a look at what is wrong. Why is there no dialog box popping up? -PHP Chinese website Q&A
Please watch and learn.