Using javascript to open, close and control browser windows
Here's the scenario:
Your site's default start page is a splash screen, this screen gives links to obtain the various pluggins and software that are needed to view your site. It also has a link to enter your site.
If this 'enter' link is clicked a small pop up window will appear with 3 further links - fullscreen, pop up and normal. When you click on one of these links, that type of window will open with your site inside. The small pop up with the 3 links will then close down.
- fullscreen:
this will open a new window that fills the users screen (whatever size and resolution it is) it will be non-resizeable and will have no toolbars, menubars, status bars or anything else apart from the title bar
the existing window (the one with the splash screen) will also change location (i make mine go to a page with a graphic saying 'thanks for visiting, yadda yadda yadda')
and also the small pop up window will then close itself and dissapear.
- pop up:
this will open a new window (usually 800x600) which will have all usual window features (toolbars, menu, etc) the user can move and resize this window as standard.
the existing window (the one with the splash screen) will change location (i make mine go to a page with a graphic saying 'thanks for visiting, yadda yadda yadda')
and also the small pop up window will then close itself and dissapear.
- normal:
this will simply load the site into the existing window
and also the small pop up window will then close itself and dissapear.
| » Level Intermediate |
|
Added: 2001-10-16 Rating: 6.85 Votes: 41 |
| » Author |
| No details available. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!