PDA

View Full Version : Set Focus


Stoffel
02-02-2003, 07:09 PM
Hiya,

Is it possible to use a "Setfocus" with javascript just like visual basic?

When someone forgot to fill in something that the message comes what they forgot and that the focus is in that box

Jimbo
02-02-2003, 07:26 PM
"document.my_form.my_element.focus()" will work for focusing an element in a form. Is that what you wanted?

Stoffel
02-02-2003, 08:24 PM
Thnx
it works perfect