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 first input field????

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can someone tell me where I can find a script that sets the cursor in the first input field?

Thnx in advance,
Boogey
 
function firstField(){
document.forms[0].elements[0].focus()
}
<body onload=&quot;firstField()&quot;>
 
what do you mean?

You want the cursor to look different on top of a certain field?

try this :

<input type=text style=&quot;cursor:help;&quot;>

You also have the following : e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | crosshair | pointer | move | text | wait | help Gary Haran
 
Thnx a lot, megalene

the code:

function firstField(){
document.forms[0].elements[0].focus()
}
<body onload=&quot;firstField()&quot;>

works fine!!!

THNX, thnx , thnx!!!!
 
Gary - you are reading the questions too literally. [lol] Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top