W3C home > Mailing lists > Public > www-html@w3.org > December 2002

OnLoad problem

From: Vinoj <vivijaya@cisco.com>
Date: Thu, 12 Dec 2002 20:18:13 -0800
To: <www-html@w3.org>
Message-ID: <001101c2a25e$a875e780$a46747ab@apac.cisco.com>
I have a body onload property that calls a function named init() defined
in a separate javascript file. The first time, the page gets loaded with
the required function, but on re-submitting onto the same page, the body
doesn't get loaded completely giving the error message that the function
init() is not defined. 
Is it any problem due to the declaration of the javascript function in a
separate file? Or do we have to declare the function invoked in the
onLoad event inline with the rest of the html code? Does declaring the
javascript source outside the head tag cause problems like these? And
does the presence of frames lead to any problem like this?
Please help.
Thanks and Regards
Vinoj Vijayan
Received on Thursday, 12 December 2002 23:21:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:01 UTC