Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  12] [ 6]  / answers: 1 / hits: 49001  / 13 Years ago, thu, october 13, 2011, 12:00:00

If they're the same, then why there are two of this kind of event?


More From » jquery

 Answers
6

As you know, the onBlur event fires for an element if that element had the focus, but loses it.



The onFocusOut event fires in this case, but also triggers if any child element loses focus.



For example, you have a div with special formatting because the human is currently editing a field in that area. You'd could use onFocusOut to turn that formatting off when focus leaves that div.



Up until very recently, onFocusOut was only used by IE. If that has changed, it has been very recent. Test in FF, Chrome, etc.


[#89627] Wednesday, October 12, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
paolam

Total Points: 437
Total Questions: 107
Total Answers: 106

Location: Aland Islands
Member since Wed, Nov 17, 2021
3 Years ago
paolam questions
Thu, Oct 29, 20, 00:00, 4 Years ago
Wed, Nov 20, 19, 00:00, 5 Years ago
;