Easy Javascript Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nexcom28
    So Fucking Banned
    • Jan 2005
    • 3716

    #1

    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
    Confirmed User
    • Sep 2004
    • 5500

    #2
    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

    YOU Are Industry News!
    Press Releases: pr[at]payoutmag.com
    Facebook: Payout Magazine! Facebook: MIKEB!
    ICQ: 248843947
    Skype: Mediaguy1

    Comment

    Working...