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 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    opening link in new page

    I am currently using the javascript 'hv menu' on my site and have a links section to other sites within the menu, unfortunately I cannot get these to open in a new window and therefore visitors are leaving my site and some are not coming back. Can I change the code to overcome this?

    The array looks like this

    Menu6_1_3=new Array("microsoft","http://www.microsoft.com","",0);

    Regards

    Homer

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Might need to see the whole code but you could try


    <base target="blank">


    just after the opening BODY tag

  • #3
    New Coder
    Join Date
    Jul 2002
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dynamic Drive has a script that causes offsite links to open in a new window. I think it would probably also apply to links from your menu.

    See http://www.dynamicdrive.com/dynamici...newwindow2.htm

    However, it is tricky to get this script and HV menu to work together. You can see the question I posted about this and the answers I received in the Dynamic Drive scripts help section of Coding Forums.

    Conflict between HV menu and open new window script

    I hope this helps. I did get them to work together.

    Shirley


  •  

    Posting Permissions

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