In the head of your html:

<script>
<!--
function setfocus() {
document.f.q.focus();
}
// --></script>

In your body:

<body onLoad=setfocus()>

In the site:

<form action="someaction" method=get name=f>



Straight from Google.

AJ

-----Original Message-----
From: t nelson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 31, 2000 2:02 PM
To: CF-Talk
Subject: Manipulating Cursor Position In Applications


Hello All,

I have a slight problem on my hands. I am trying to make the cursor default
to the beginning of my input fields. For example if a user opens up a
<cf_form> page, I want them to be able to begin inputting their data without
having to use their mouse to move their cursor into position.

Any ideas out there?


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to