View Full Version : opening link in new page
Homer
08-23-2002, 01: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);
Regards
Homer
Might need to see the whole code but you could try
<base target="blank">
just after the opening BODY tag
shirleymck
08-23-2002, 10: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.
http://codingforums.com/showthread.php?threadid=3000
I hope this helps. I did get them to work together.
Shirley
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.