The onLoad event may work for you, but if you are looking to run a
Javascript function that can't work reliably until the browser has finished
parsing all the Javascript and building its "DOM" for the page being loaded,
then you can't rely on the onLoad event (that apparently is just fired when
the HTML page is loaded). There was a recent article in the Java Report
"Javascripting" column that described this problem. The author suggests
adding a dummy form to the bottom of the page, and then counting the number
of forms to make sure that it has been loaded and parsed correctly, by
checking the length of the forms array (document.forms.length) and using the
setTimeout("functionName", ms) function to "loop" until the length includes
the dummy form. Check the September 2000 issue for details.
----- Original Message -----
From: Amol Katdare <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 09, 2000 3:14 AM
Subject: Re: broswer's event when page finish loading ????
> theres no browser event as such. but theres this onload event of html
which
> u can trap it in the body tag and assign a script function to it.
> e.x.
> <body onload="load();">
> where load() is a user defined javascript function and it wil be called
> everytime the page is loaded.
>
>
> ----- Original Message -----
> From: "653" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, September 09, 2000 1:39 PM
> Subject: broswer's event when page finish loading ????
>
>
> > i need to do certain things after browser has completely loaded the
page.
> so
> > i was wondering whether browsers fire an event kind of thing when page
is
> > loaded. also is there anyway that we can find whether page was
> successfully
> > loaded ? i mean that sometimes connection is broken.
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html