John,

Create and Call a JS function to handle the
current on load js code as well as the focus call
like: 

<HTML>

<HEAD>
<TITLE> Test onload</TITLE>

<script language="JavaScript">

<!--
function CheckOnLoad()
{       
   ....your other js code

   document.TEST.fieldname.focus();

   .. any other js code
}


//-->
</script>

</HEAD>


<body onload="CheckOnLoad()">

rest of body.....

</body>
</html>


Jim



-----Original Message-----
From: John Allred [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 15, 2000 2:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Setting Focus to Field


"Reilly, Jim" wrote:
> 
> <body onload="document.TEST.fieldname.focus()">
> 

If I already have an onload in a page, how would I add this one too? I'm
doing some preloading, and I'd like to also set the focus to a form
field.

Thanks,
--John
----------------------------------------------------------------------------
--
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