1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Putting A Popup On An Outside Site

Discussion in 'General Programming Chat' started by matapples01, Aug 6, 2008.

  1. matapples01

    matapples01 Regular Member

    Joined:
    May 15, 2008
    Messages:
    358
    Likes Received:
    208
    Looking for some of your programming expertise here. I know that you can enter code on a specific page you own and have a popup appear but can you have a new (outside page) load and have a popup on that page?

    Basically I want to have a external links on my site that when clicked load the new page but also loads a pop up on the new page. Is it even possible to have a pop up on a page you don't own?
     
  2. agj32mrgibbits

    agj32mrgibbits Registered Member

    Joined:
    Mar 1, 2008
    Messages:
    73
    Likes Received:
    50
    You could put the new page inside of an iframe and then pop it up or you can make it open the popup right when they click the link.
     
  3. Orebil

    Orebil Registered Member

    Joined:
    Jul 13, 2008
    Messages:
    66
    Likes Received:
    13
    Occupation:
    Web Developer
    Location:
    USA
    You would create the popup with javascript before sending the person to the new page.
    Code:
    <a href="newsite.com" onclick="window.open('yourpopup.html')">link</a>
    
     
  4. matapples01

    matapples01 Regular Member

    Joined:
    May 15, 2008
    Messages:
    358
    Likes Received:
    208
    Sorry for the confusion (or maybe I'm confused) but I don't want the new page to load IN the popup. I want it to load on a click like a normal new page would and then have a popup load over that new page.
     
  5. DeskCoder

    DeskCoder Regular Member

    Joined:
    Feb 20, 2008
    Messages:
    376
    Likes Received:
    55
    Occupation:
    Coder
    Location:
    Kentuckiana
    Code:
    <body onload="window.open('page.html')">
    I must be missing something
     
  6. matapples01

    matapples01 Regular Member

    Joined:
    May 15, 2008
    Messages:
    358
    Likes Received:
    208
    Works great...thanks!
     
  7. Orebil

    Orebil Registered Member

    Joined:
    Jul 13, 2008
    Messages:
    66
    Likes Received:
    13
    Occupation:
    Web Developer
    Location:
    USA
    You can set the popup size and other options too, just lookup window.open on google for how to do it.