Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnFocus() syntax help needed

Status
Not open for further replies.

TonyU

Technical User
Joined
Feb 14, 2001
Messages
1,317
Location
US

[tt]
When the user(s) open the initital form page I want the focus to be obviously on the first field but this simple code is not working and I can't find how to set focus to it using DreamWeaver


<INPUT type=&quot;text&quot; name=&quot;first&quot; size=&quot;30&quot; maxlength=&quot;50&quot; onFocus=this.blur()>


Thanks Javascript gurus.
[tt]&quot;A Successful man is one who can build a firm foundation with the bricks that others throw at him&quot;[/tt]
[noevil]
 
[tt]Oops, wront forum. But if you guys know how, please let me know.
[tt]&quot;A Successful man is one who can build a firm foundation with the bricks that others throw at him&quot;[/tt]
[noevil]
 

Edit and add this to your body tag

onLoad=&quot;javascript:document.yourformname.yourfieldname.focus();&quot; The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top