Open new window after page finishes loading
Hi,
Where can I find a script that opens a new window (with specified width, etc) after a page finishes loading?
Sabrina
Hi,
Where can I find a script that opens a new window (with specified width, etc) after a page finishes loading?
Sabrina
John Pollock posted this at 02:23 — 27th April 2000.
He has: 628 posts
Joined: Mar 1999
Use the onLoad call in the body tag:
<BODY onLoad="window.open('url','name','width=100,height=100');">
Just add and set the other attributes you need for the window and it should do it.
[This message has been edited by John Pollock (edited 26 April 2000).]
Java Script: A Beginner's Guide
Page Resource
SabrinaP posted this at 03:36 — 27th April 2000.
They have: 318 posts
Joined: Mar 1999
Thanks! hey, is there a way to automatically center the webpage in the user's window when it loads?
Sabrina
[This message has been edited by SabrinaP (edited 26 April 2000).]
fairhousing posted this at 05:48 — 27th April 2000.
They have: 1,587 posts
Joined: Mar 1999
a meta refresh tag may be able to do it too.
------------------
CLICK 4 some tested resources for making money $, hosting, and web promotions.
My Site got hacked, but i'm coming back?
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
Lloyd Hassell posted this at 13:40 — 27th April 2000.
They have: 231 posts
Joined: Feb 2000
If you want to center the new window on your page then you will have to find the X/Y dimensions yourself. Use the following code as a guide.
:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.