Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to FOCUS on input field through ONERROR attribute

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When an input field fails edit, I would like to focus on the field (invoke Javascript focus() method). I would like to do this with the ONERROR attribute, but also make the code flexible so that the field name in question is passed to a single function that causes the focus for any field.
Can this be done?
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top