Results 1 to 3 of 3

Thread: Need this link to open in new window

  1. #1
    Join Date
    Feb 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need this link to open in new window

    Where and What code would I use to have this link when clicked within my pages menu open in a new browser window? I've tried everything and when I make a change to it I get errors.

    This is a snipet of my code that runs my menu.

    Menu2_1=new Array("Logistics Command","http://www.logcom.usmc.mil/default.asp",0,14,164);

    Thanks for any help!

    Mark

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Please post more of the code so we can help.
    That right there just places a value into an array which is later just USED to make a link.
    The target attribute (whether by javascript or html; not sure yet) is set when the link is made, not via the url used.

    If this is a dynamic drives script, link to the script as well, and this should go in the "dynamic drives script help" section near the top.


    This thread has been replaced here:
    http://www.dynamicdrive.com/forums/s...ad.php?t=19000
    Last edited by djr33; 03-26-2007 at 02:04 PM.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That other thread is a mess so I'm replying here. Most (not all) menus that have that sort of syntax will work like so to make a new window:

    Code:
    Menu2_1=new Array("Logistics Command","javascript:window.open('http://www.logcom.usmc.mil/default.asp')",0,14,164);
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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