The names are case sensitive.
So, if your form is NAMED  "TEST"

then you will need:
<body onload="document.TEST.fieldname.focus()">

whereas:
<body onload="document.Test.fieldname.focus()">
would NOT work.

Same goes for the fieldname..

Hope this helps!



-----Original Message-----
From: Perez, Bismark [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 15, 2000 11:27 AM
To: Cf-Talk (E-mail)
Subject: Setting Focus to Field


Hello there,

I was looking in the Allaire tutorials and found a way to set the focus to a
field as soon as the page is loaded, the problem is that it does not work
for me, can somebody tell me what I'm doing wrong...

<body onload="document.someform.fieldname.focus()">

TIA
Bismarck Perez

----------------------------------------------------------------------------
--
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.
------------------------------------------------------------------------------
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.

Reply via email to