Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
173
rated 0 times [  178] [ 5]  / answers: 1 / hits: 182691  / 15 Years ago, mon, april 20, 2009, 12:00:00

I have a standard HTML input that I want to run JavaScript code when it loses focus. Sadly my Google searches did not reveal how to do this.



To make it clear, I'm looking for a way to do this:



<input type=text name=name value=value onlosefocus=alert(1);/>

More From » html

 Answers
63

How about onblur event :



<input type=text name=name value=value onblur=alert(1);/>

[#99675] Tuesday, April 14, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
christianu

Total Points: 481
Total Questions: 124
Total Answers: 99

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
2 Years ago
christianu questions
;