Having onFocus do several things.
Posted
by
Jakob
on Stack Overflow
See other posts from Stack Overflow
or by Jakob
Published on 2011-03-16T08:00:17Z
Indexed on
2011/03/16
8:10 UTC
Read the original article
Hit count: 174
JavaScript
|html
So I have this input tag <input ... onFocus=...>
and what I want is for a warning popup to come up if somebody clicks to write in the input field. After the person has read the warning he/she closes the popup and can continue to write in the field. I have managed to implement the popup just fine but my problem is that I lose focus on the input field when the popup comes up so the next time I click the field the popup comes back again and im back on square one.
The system I work on uses php and javascript so and I cannot use anything other than that to solve the problem and my experience with both php and javascript is limited.
© Stack Overflow or respective owner