View Full Version : A question for the web designers
crazyinternet
04-23-2003, 02:16 PM
Does anyone know a possible way, using only (x)html or javascript (I don't wanna have to get into action scripting for this) to have one link close the current window, while opening a new window? It may seem redundant, but I need the new window to open to specific dimensions and restrictions, which is why I can't just use the same window. Any ideas would be appreciated.
Xirus
04-23-2003, 05:45 PM
well for as far as I remember it's possible to resize a popup window with a simple javascript function, so I think that would be a nice way to solve your problem.
here's what google came up with http://www.xs4all.nl/~ppk/js/winprop.html
Inkthinker
04-23-2003, 07:16 PM
Why close the current window?
FlyinPlatipi
04-24-2003, 07:05 AM
cuz if you open a sized window, and then click the next link, it'll appear in the pop up that already exists and stays at that size.
My sized pop up code is from a friend...so i'm not totally familiar with it ;( sorry
-FP
xadrian
04-24-2003, 07:13 AM
How about including a Close Window link in the pop up? Are you assuming they'll leave the pop up open and nav back to the parent window?
chachi
04-24-2003, 09:17 AM
There's a little section in the javacript that tells it to open up in an "html" you have to change it to "new".
It's in the "promoWindow = window.open" section of the javascript
crazyinternet
04-24-2003, 01:26 PM
Thanks for all the replies guys. First, I want to clarify that I have had success opening the popup window with the dimensions that I want, the problem at hand is closing the parent window. You see, upon first entering the site I used a splash page so that upon clicking the -enter- link, I can have the actual site open with the dimensions I want. But having the big splash page behind the actual site looks a bit awkward, being the reason I want it closed. Theoretically yes, xadrian I guess I could have a close window link on the new pop-up window, but for some reason I don't trust site viewers to be that ... cough-intelligent-. It seems like if i could do it without them realizing it happened, I would be a lot better off. Any new ideas now? Haha because I sure am stumped.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.