Setting body.onload through javascript

"Moran Ben-David" <[email protected]>
Newsgroups gmane.comp.web.dom.wdf
Message-ID <001101c5ec76$a514ff80$6401a8c0@short>
Hi.

 

First off, I'd like to say that I am very thankful for this list and it's
been a pleasure reading it.  The reason I'm sending this email though is
more technical.

 

I have a problem where I want a javascript function to be called from
body.onload.  However, I need to set the body.onload dynamically.  Is this
possible?  Are there any limitations to this?  For example, overwriting the
listener for body.onload doesn't work if body.onload has been initialized
inline (e.g. <body onload="notmyfunction();">).

 

Any help is greatly appreciated,

 

Moran Ben-David



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.