Is there a way that I can Set the focus on the first textbox or textarea in a page without knowing what is it's name or if there even is a textbox or textarea at all ??
Printable View
Is there a way that I can Set the focus on the first textbox or textarea in a page without knowing what is it's name or if there even is a textbox or textarea at all ??
you can use the tabindex attribute- set it to 0 for the one you want to have focus.