SetFocus

  • Thread starter Thread starter Jurjen de Groot
  • Start date Start date
J

Jurjen de Groot

I would like to set the focus automatically to one of the textbox controls
on my page, but so far on every page I load I have to set the cursor to the
textbox by Tab-ing or clicking my mouse in it. I would think that there's a
much simpler way to solve this ...


regards,

Jurjen de Groot
G.I.T.S. Netherlands.
 
Jurjen de Groot

Try putting this code at the end of the page,I think it
goes before the body tag and after the form tag....

<script language=javascript>
document.GetElementById('YourTextboxName').focus()
</script>

dmedina
 
Back
Top