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

Help with Javascript or CSS Problem

Discussion in 'HTML & JavaScript' started by africanart, Apr 14, 2015.

  1. africanart

    africanart Regular Member

    Joined:
    Jan 25, 2014
    Messages:
    271
    Likes Received:
    78
    Occupation:
    Re-watching Star Wars
    Location:
    Atlantis
    I would like to have an image in a pop up open up in a new window when the onlick javascript method is invoked and cant seem to make it work.
    Any ideas as to how i can do this.
    Am using Ninja pop ups by the way and the HTML theme which allows me to put up an picture of a youtube video and i want when the visitor click it, he/she is sent to a presell page.
    Any help would be appreciated.
     
  2. Conor

    Conor Elite Member

    Joined:
    Nov 7, 2012
    Messages:
    3,579
    Likes Received:
    5,964
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    Hmm, you can't just add a link and target="_blank"?
     
  3. jajoman

    jajoman Newbie

    Joined:
    Jul 27, 2011
    Messages:
    14
    Likes Received:
    1
    Do you want to open a modal window?
     
  4. delite737

    delite737 Registered Member

    Joined:
    Nov 1, 2013
    Messages:
    70
    Likes Received:
    11
    yes this will open a new window
     
  5. HAARR

    HAARR Newbie

    Joined:
    Aug 31, 2015
    Messages:
    6
    Likes Received:
    0
    Code:
    window.open(url, windowName, "height=200,width=200");
    This will open new window.