how do i have my page start off with the focus already on a certain textbox?
and how do i set a certain button to execute when the user presses enter? (the equivalent of setting the Default property to true in VB6)
Printable View
how do i have my page start off with the focus already on a certain textbox?
and how do i set a certain button to execute when the user presses enter? (the equivalent of setting the Default property to true in VB6)
In Javascript, you can use the Blur() and focus() methods, in the onLoad handler.
EG: <body onload="txtUsername.focus();">