PDA

View Full Version : Opening a New Window from Menu


AncientChild
04-19-2003, 12:19 AM
I am using the following two codes:

http://www15.brinkster.com/angelicdemon/menu.js
http://www15.brinkster.com/angelicdemon/menu_com.js

They work together in a three frame page. The first frame never changes. The second frame contains a menu for the website which is created by the previous two codes. The third frame is where are the links from the menu open up to.

Everything works great except in menu.js I want menu1_3, menu1_4, and menu6 to open in a new window. Can anyone please help me with this?

smeagol
04-19-2003, 01:47 AM
For the text in those menu items you want to open a new window, use the following:

<a href=http://www.whateverpage.com onclick=window.open(this.href); return false>New Window</a>

See if that works for you. Basically, it's putting a link inside your menu item that, when clicked on, will open a new window.

Worth a try.....hope it helps!