Being general;
Save this text by itself into a cold fusion file. Then cfinclude the file at the
bottom of any page you want focus to be set to. It will find the first input and set
focus to it.
<script
language=JavaScript>window.focus();if(document.forms[0]!=null){if(document.forms[0].elements[0]!=null){if(document.forms[0].elements[0].type!='hidden')document.forms[0].elements[0].focus();}}</script>
-JR
------- Original -------
Hi CF_friends,
How do I make the Cursor Default to the First Input Field as soon as a form
is requested. I used the tabindex='1' attribute but it still defaults to
the browser URL Address box.
Thanks
sam
-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.