Javascript: Successive calls to focus() fail
I have a long page with a number of fields which I have to "validate". In the validation process I want to be able to tell the user about each "failed" field with an alert and have the focus on the field.
It's something like: Code:
for (;;) { I tried adding a blur() after each alert to "force" unfocusing the field, but that didn't help. Any ideas why this is happening? I'm testing with FF2. I just tested on IE and it works the way I want it to. How could I get it doen on FF? |
All times are GMT -5. The time now is 05:57 AM. |