1、onblur事件
<input id="Text1" type="text" onblur="alert(111)" /></p>
例如一个文本框,当在文本框中输入完成某些值时,点击任意处便可触发该事件。可关闭。
2、onfocus事件
<input id="Text1" type="text" onfocu="alert(1)" ></p>
只要点击或者在该文本框中输入某些值便会不断地重复该事件。无法关闭。
3、onclick事件
<input id="Text1" type="text"onclick="alert(00)"/></p>
顾名思义,点击该文本框便会触发该事件。可关闭。