Re: Such a command as 'onbeforeload'?



CJS said the following on 11/15/2007 4:44 AM:

[follow-up set to comp.lang.javascript]

"nolo contendere" <simon.chao@xxxxxxx> wrote in message news:1195066138.248524.40570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Nov 14, 2:33 pm, "CJS" <a...@xxxxxxxx> wrote:
Hi, I have a javascript popup which I want to happen BEFORE the rest of the
page loads. It's something for people to read while quite a heavy page
loads behind it.

I tried using 'onbeforeload' instead of 'onload' in the Body tag, but it
doesn't pop up at all then.
I didn't see such an event. But what are you trying to accomplish?
Perhaps there is a way to do what you require via another path.

Simply what I want to accomplish is the popup to come up *first* befoer any other page elements load. It is complicated as to why, and other factors, but that is what needs to happen.

The onload tag seems to open happen after the page has finished loading completely, which is odd.

Want something to happen during load? Don't use onload. It fires after the element has completely loaded. Why you would find it odd that an event that is defined to trigger after the element is completely loaded only fires after the element is completely loaded is, well, odd to say the least.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
.



Relevant Pages

  • Re: Such a command as onbeforeload?
    ... loads behind it. ... The onload tag seems to open happen after the page has finished loading completely, ... Why you would find it odd that an event that is defined to trigger after the element is completely loaded only fires after the element is completely loaded is, well, odd to say the least. ...
    (comp.lang.javascript)
  • Re: Such a command as onbeforeload?
    ... loads behind it. ... The onload tag seems to open happen after the page has finished loading ... Why you would find it odd that an event ...
    (comp.lang.javascript)
  • Re: Windows XP nuisance
    ... Seems odd to me. ... Works everytime for me even after trying different properties settings for the shortcut. ... Perhaps you should try a shortcut to a different site, something that is well known & loads quickly & see how that goes. ...
    (uk.comp.homebuilt)
  • Re: Watership Down 100km (was Re: cycling to school - advice needed)
    ... That's odd, the Watership Down was the same last year, loads of punctures ...
    (uk.rec.cycling)
  • Re: Such a command as onbeforeload?
    ... Don't use onload. ... It fires after the ... Why you would find it odd that an event ... the direct result of your failure to read published documentation. ...
    (comp.lang.javascript)