javascript new window

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

javascript new window

Post by Ruth »

I've done a search and it may be out there but probably because I don't really understand it I can't find it. This is what used to be on the site for this particular link

Code: Select all

<A href="#" onClick="window.open ('http://www.poems2u.com/menu.htm','javascript_menu1a','height=300,width=300,location=no,menubar=no,scrollbar=yes,resizable=yes'); return false;">whatever</a>
How would I do that in the menu. I know about the target features but can't figure out how you name the window so it's not used again if you click another link with a target=new feature. Thanks in advance.

Ruth
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Take a look at the sample Ruth. http://milonic.com/menusample.php?sampleid=11

Whatever you specify for the TARGET is what the window is named. So you can have your links either reuse the window if you give them all the same name of you can say target=_blank so make them all use different windows. And then you can also use all the other menu options that the targetfeatures provides.

Hope this helps.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

:oops: duh......so simple
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

innkeeper9 wrote:duh......so simple
Dont I wish it was always that way....hehe.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply