I have settled on doing a check document.readyState coupled with a
hasRun variable.
Seems to satisfy my needs.

document.readyState is supported by all of the browser that I am
supporting in this project.

On Dec 14, 3:48 pm, Peter van der Zee <jsment...@qfox.nl> wrote:
> On Wed, Dec 14, 2011 at 11:12 PM, geoffreyk <geoffr...@seanet.com> wrote:
> > So it seems it is necessary to check if onload has fired. Off looking
> > for that information now...
>
> The easiest way would be to include a simple script tag at the end of
> the body, right before the closing </body> tag that sets some global
> which you can check later. Of course, if that was possible you
> probably would have included your original script there anyways... The
> alternative "sure fire" is to set onload in the body in the html,
> <body onload="window.onloadFired = 1;">, also hackish but I don't know
> what you're trying to achieve.
>
> - peter

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to