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 Rhinorhino 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
Joined
Jan 1, 1970
Messages
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.)
 
I know it sometimes is hard to program too much. We tend to become binary people with no room for imagination.

Gary Haran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top