Results 1 to 3 of 3

Thread: Sending a menu item to _blank?

  1. #1
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sending a menu item to _blank?

    1) Script Title: HV Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/index.htm menu_com.js

    3) Describe problem: I have a question about how to get a link on the menu to go to a new web browser. I know in regular html you just specify target=_blank but how do you do it in the menu like below? i tried adding it to the end of the URL but no dice I also tried the blank '' but that also didnt work.

    Menu1_1 = new Array('My Test Link', 'http://www.mytestlink.com', '', 0, 30, 140);

    btw: what is that empty ' ' section for (3rd var)? I have never found any sample that uses it.

    Thanks in advanced...

  2. #2
    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

    Working from memory, I think this is how that menu does it:

    Code:
    Menu1_1 = new Array('My Test Link', 'javascript:window.open("http://www.mytestlink.com","_blank")', '', 0, 30, 140);
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect Thank You!

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
  •