Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically adding functions to the <body> onload 1

Status
Not open for further replies.

jm99

Programmer
Jun 14, 2001
27
GB
Hi Guys

Anybody know of a way to dynamically add functions to the body tag's onload event?

Basically, at the point at which the <body> tag is written I am unaware of the initialisation functions that will need to be called. This only emerges as further JSP tags are evaluated and I would like to allow these to add their init routines so that once the entire page has been loaded they can execute as one.

I can access the contents of the document.body.onload in IE 5.5 but can't find a way to write to it.

I realise that this sounds like a contrived situation but believe me, as a result of the legacy code hanging around being able to do this will substantially reduce the migration time to our new platform.

Any help greatly appreciated

 
onload=functionname,

for more info, take a look:

faq216-1063

or other faqs on events Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top