page load message

  • Thread starter Thread starter matt shudy
  • Start date Start date
M

matt shudy

Hi,

How do i get a message to pop up saying this page will
take a while to load, while the page is loading and
disappears when the page has loaded?

Thanks,

Matt
 
You can put a JavaScript at the very top of the page (just under the <html>)
that launches a new browser window, using the window.open() method. The new
browser window contains your message page. At the very bottom (just above
the </html>) you put a script in that closes the child window. Just make
sure you check tosee whether it is still there, as the user may close it
before your script tries to.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.
 
See if the free addin "Spawn" will do what you want:
www.jimcoaddins.com

--
------------------------------
Tom Pepper Willett
Microsoft MVP - FrontPage
------------------------------
| What is the close command? How would i go about limiting
| the size of the window?
|
| Thanks,
| Matt
| >-----Original Message-----
| >Hi,
| >
| >How do i get a message to pop up saying this page will
| >take a while to load, while the page is loading and
| >disappears when the page has loaded?
| >
| >Thanks,
| >
| >Matt
| >.
| >
 
Hi,

Is there any way to get a message like when you refresh
this discussion board, just saying that the page will take
a while to load, in the same window?

Thanks,
Matt
 
Are you asking me? Because you replied to yourself.

The JavaScript window.open() method returns a reference to the child window,
which you use to close the child window. It can also take parameters that
define the characteristics of the child window. Example:

var myChild = window.open("http://www.takempis.com/default.asp", "myChild",
"left=20,top=20,width=200,height=100");

To close it:

myChild.close();

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.
 
Back
Top