I would like to make it so that when a text box has focus, when it loses focus it triggers an event.
I am trying to make it so that a user to my page has to enter their name into the box and if they try to click on something else w/o typing anything in, it will either put up an alert or will put focus back into the box.
Mainly, I just need to know how to get it to detect loss of focus. Thanks.
Geuis
I am trying to make it so that a user to my page has to enter their name into the box and if they try to click on something else w/o typing anything in, it will either put up an alert or will put focus back into the box.
Mainly, I just need to know how to get it to detect loss of focus. Thanks.
Geuis