View Full Version : opening link in new page

08-23-2002, 02:43 PM
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);



Mr J
08-23-2002, 08:59 PM
Might need to see the whole code but you could try

<base target="blank">

just after the opening BODY tag

08-23-2002, 11:11 PM
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/dynamicindex8/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.


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