Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open link in new window

    How can I code this so it opens in a new window? Thank You

    Code:
    Menu13=new Array("rollover:bdonations.gif:bdonations2.gif","http://www.store-worldministries.org/donations.html","",0);

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    I assume you are referring to the .html page:

    Code:
    var newone = window.open("http://www.store-worldministries.org/donations.html", "_blank"); // or
    var newone = window.open(Menu13[1], "_blank");
    "_blank" is actually the default, but it is not guaranteed to open a new window - it can depend on the users' browser settings.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •