Closed Thread Icon

Topic awaiting preservation: Close a full screen window and go to a URL (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8629" title="Pages that link to Topic awaiting preservation: Close a full screen window and go to a URL (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Close a full screen window and go to a URL <span class="small">(Page 1 of 1)</span>\

 
trak102
Obsessive-Compulsive (I) Inmate

From: Lexington, KY USA
Insane since: Apr 2003

posted posted 04-29-2003 17:52

Hello, this is my first entry; I would greatly appreciate any help!

I'm using a full screen popup to display enlarged photos. In this full screen window I also would like to have a link back to a page on the main site. The full screen popups are not permanent; they are generated each time linked. What I?m trying to do is close the full screen window and then go back to the "parent" window and open a new page. I've tried a couple of things that link me to the new page but still inside of the full screen.

Thanks, trak102


bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-29-2003 18:34

No biggie here. What I would do is this, drop this little function in your head tags of the popup window.

<script language="javascript">

function goAndClose(url) {
window.opener.location.href = url;
window.close();
}

</script>

Then for the link on the popup put this

<a href="javascript: goAndClose('http://wherever.com/page.html')">Link</a>

That should redirect the main page and close the popup.



.:[ Never resist a perfect moment ]:.

Arctic Fox
Obsessive-Compulsive (I) Inmate

From:
Insane since: Apr 2003

posted posted 05-13-2003 03:33

I have a similar question...

Here's the idea:
1) Parent opens new fullscreen window, then parent self closes... leaving only the fullscreen window.

2) When fullscreen closes, that process opens a 'normal' window with the URL of the original parent...

Is this possible? I know it should be using cookies, but I've never figured out how to do it..



Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-13-2003 04:11

You can't close a window unless you opened it yourself. That's a security precaution - imagine the annoyances that pop-up ad banners could cause if they could close the opening window! That's just one example, too. There are a lot of ways it could be used to confuse users.

The closest you can come is probably to use bitdamaged's script, above, to change the page displayed in the original window when the popup is closed.

« BackwardsOnwards »

Show Forum Drop Down Menu