Problems opening new browser window using new or blank

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Philip Edwards
Beginner
Beginner
Posts: 2
Joined: Thu Mar 25, 2004 11:39 am

Problems opening new browser window using new or blank

Post by Philip Edwards »

I have just created a menu that includes links to other sites which I wanted to open in a new window. Unfortunately the use of _blank or_new does not work all the time. Sometimes it does open the link in a new window and sometimes it appears in the frame. Could I use javascript to ensure that my links do open in a new window. If this is possible could someone provide me with the text needed to put this into menu_data.js.
I have no knowledge of Javascript so any help would be great. The URL to my site is http://www.agape.org.uk/familylife

Any help to resolve this problem would be great

Philip
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

John
Philip Edwards
Beginner
Beginner
Posts: 2
Joined: Thu Mar 25, 2004 11:39 am

Post by Philip Edwards »

I looked at your link but this seems to show me that I need to use the target _new or_blank which do not work consistantly and this is my problem. Any other solutions?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Yep - continue reading down that same page! :D

Starts out, "aI("text=Open Google;url=http://www.google.com;target=windowname;targetfeatures=width=300 height=300");

The above menu item will open a new browser window to http://www.google.com. This window will contain no scroll bars, location bars, status bars, menus or the ability to resize the window. This is the blank state of a browser window." etc...

BTW, _new and _blank should work fine. I use _new all over my sites with no problems. Meanwhile I'll look at your code again.
John
Post Reply