Re: Such a command as 'onbeforeload'?
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Thu, 15 Nov 2007 04:59:34 -0500
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@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxOn Nov 14, 2:33 pm, "CJS" <a...@xxxxxxxx> wrote:Hi, I have a javascript popup which I want to happen BEFORE the rest of theI didn't see such an event. But what are you trying to accomplish?
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.
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?
.
- Prev by Date: Re: How to access the authenticated third party url through weblink?
- Next by Date: Re: HTML on Firefox 2
- Previous by thread: How to access the authenticated third party url through weblink?
- Next by thread: margin: auto - but only up to a point
- Index(es):
Relevant Pages
|