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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor in form field

Status
Not open for further replies.

webpager

Programmer
Mar 27, 2001
166
0
0
GB
When a page loads, the cursor cannot be seen.
How can I ensure the cursor is in a particular field when the page loads?

Keith
 
<SCRIPT>
<!--
function setfocus() { document.form_name.field_name.focus(); }
// -->
</SCRIPT>
<body onload=setfocus()>

Chnage the red fields to match your form DeZiner
gear.gif width=45 align=left
When the gears stop turning,
we all stop learning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top