|
Posted by Randy Webb on 11/15/07 09:59
CJS said the following on 11/15/2007 4:44 AM:
[follow-up set to comp.lang.javascript]
> "nolo contendere" <simon.chao@fmr.com> wrote in message
> news:1195066138.248524.40570@50g2000hsm.googlegroups.com...
>> On Nov 14, 2:33 pm, "CJS" <a...@anon.com> 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?
[Back to original message]
|