views:

2102

answers:

1

Hello,

Does anyone have a technique that will allow me to determine which element has focus after a blur event? I have an input field which I'd like to reset on blur unless the blur was caused by the user clicking the "save" button. I'd love to just set a flag in the save button's onclick funtion, but that would fire too late (unless click events always fire before blur events, which I doubt.)

thanks!

-Morgan