Go Back   Ultimate Web Site Drop Down Menu Forum > Web Development > CSS and HTML
Register FAQ Members List Calendar Today's Posts

Reply
Thread Tools Display Modes
Unread 08-06-2007, 06:31 PM
paulj paulj is offline
Senior Member
Join Date: Jul 2007
Posts: 521
  #1  
Default Stupid question

Ok this is a stupid question but I am drawing a blank and im sure it is HTML related and not JS. Anyway what I am trying to remember is, how do I set the cursor to be in a text box in a form when the page loads? Thanks alot for the help
Reply With Quote
Unread 08-07-2007, 02:59 PM
theUKdude
Posts: n/a
  #2  
Default

Code:
<body onload="document.myform.myfield.focus()">
where myform is the 'name' attribute of your form and myfield is the 'name' attribute of your field.

hth

theUKdude
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:36 PM.


Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.