Yes it is possible. I think you use 

document.HTMLElement["BODY"].setAttribute("onload","somefunction()");


as a first stab at it...

-----Original Message-----
From: Stephen Fernandez [mailto:[EMAIL PROTECTED]]
Sent: 18 September 2002 11:36
To: Cfugdev (E-mail)
Subject: [ cf-dev ] OT: javascript body onload question


does anyone know if its possible to set the body onload handler function
using javascript after the <Body> tag has been defined?

eg is something like this possible? if so whats the syntax?

<html>
<head></head>
<body>
code code code
code code code
<script>
document.body.onload=somefunction();
</script>




This email has been scanned for viruses by NetBenefit using Sophos anti-virus 
technology



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to