Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parent & Child

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
US

Ok, I want to open a fullscreen popup window, that's easy so far, but now I want that stupid parent window gone so the only window from my site that's open is the fullscreen one. The design has been made especially for the fullscreen view. When you close the full screen window it's silly to see the parent window still showing my site in the regular screen.

So what would be the best way to get that parent window gone?

Would window.opener.close(); work well?

Thanks,

Tony
 
Why open one window and close another? Just use the same window and set its attributes to full screen.
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 

I don't follow You there, are you saying I can take a window and turn it into a fullscreen window without having to open a new window?

Say I have only one window open, I can put a javascript in there and change the window to fullscreen? How would I do that?

Could you explain exactly what you mean?

Thank You,

Tony
 
When you say fullscreen, you mean you don't want the address bar - or status, is this right? Well there is no way to get rid of these in an existing window unfortunately, so a new window is an option. Although you could resize it to really big - so all that stuff was hidden, I think that's what he's getting at.

AS far as closing the parent - you can, using opener.close() but the client will be prompted and asked if they want the window to be closed, there is no way around this.

Why don't you put something else in the parent window - this way it won't look "silly" by showing the site in the reduced size window. So when you open the new one, you could write something to the parent which tells the user to use the other window or something.


b2 - benbiddington@surf4nix.com
 

Hey, oversizing the window is a great Idea, I didn't get what he was talking about thanks for clearing that up. Now that I can do. Thanks for the info about not being able to change the existing window's properties.

I think I'll go with what you were saying about having the parent window say something like, ok so now what do you want to do, except I'll put some kind of a navigation menu there to get. Whatever I put there, this will work,

Thanks A Ton Mate,

You've saved me so much time! I'm a dope with javascript so you guys really help me out with this stuff.

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top