you could either combine the stuff into one function call (eg...)

<HEAD>
...
<SCRIPT>
function doonloadstuff() {
...
}

</SCRIPT>
</HEAD>

<body onload="doonloadstuff();">

or you could separate them with semis. (eg...)

<body onload="document.TEST.fieldname.focus(); dootherstuff();
dosomemorestuff();">

Chris Olive
DOHRS Website Administrator
[EMAIL PROTECTED]


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