GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Easy Javascript Question (https://gfy.com/showthread.php?t=587912)

nexcom28 03-17-2006 05:16 PM

Easy Javascript Question
 
How do I make a new page open up behind the current page?
For example, index.html is loaded and sponsor.html loads behind it or when index.html is closed sponsor.html opens up..

Thanks for any help.

MediaGuy 03-17-2006 06:00 PM

Put this on the parent page:

<a href="#" onclick="window.open('popupchildthing','kid','resi zable=no,scrollbars=no,width=250,height=148,toolba r=no');">click</a>

Then put this in the child:
<a href="#" onclick="window.opener.location.href='whatever';"> change parent</a>

I don't know if you want the pop up to close or not but there's a body tag Unload script i used in the parent so it shuts the child each time the page changes... nav by popup lol


All times are GMT -7. The time now is 09:51 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123