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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top