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

How to get "Iframe" open in new window

Discussion in 'General Scripting Chat' started by escapez, Oct 5, 2015.

  1. escapez

    escapez Newbie

    Joined:
    Jun 29, 2015
    Messages:
    25
    Likes Received:
    5
    Location:
    Babylon
    I saw some sites having affiliate offer auto opening in new window.

    I tried everything to get this working. I know that with Iframes its impossible to open link from another domain in new browser window.

    Anyone have any other solution to this?

    I am using wordpress sites.
     
  2. srb888

    srb888 Elite Member

    Joined:
    Jul 30, 2008
    Messages:
    3,267
    Likes Received:
    5,083
    Gender:
    Male
    Occupation:
    WebzSurfer
    Location:
    Sun, Mon, Tue, WTF, Sat!!! :)
    Try the code here (it's at the bottom where the OP states that he has solved it):
    Code:
    http://stackoverflow.com/questions/19759880/open-iframe-in-a-new-window
    Also Google:
    iframe open in new window
    wordpress iframe open in new window
     
  3. zotohost

    zotohost Registered Member

    Joined:
    Oct 25, 2015
    Messages:
    71
    Likes Received:
    4
    target="_blank"

    should do the work.