Open new browser window from menu item

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Hanbag
Beginner
Beginner
Posts: 2
Joined: Tue Jun 08, 2004 9:58 am
Location: Glasgow, Scotland
Contact:

Open new browser window from menu item

Post by Hanbag »

I would like to be able to open directly from the menu a PDF document in a new window i.e. similar to the
"target=_blank" HTML command. Is it possible to do this with the Milonic menu?
Hannah Whitelaw
Horne Engineering Ltd
Glasgow
UK
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Set it up the same way you would any other aI statement and add target=_blank;...

Code: Select all

aI("text=My PDF;url=mypdf.pdf;target=_blank;");
John
Hanbag
Beginner
Beginner
Posts: 2
Joined: Tue Jun 08, 2004 9:58 am
Location: Glasgow, Scotland
Contact:

Post by Hanbag »

Many thanks John

I had tried to do this before but it caused the whole menu to disappear - I guess there was a syntax error of sorts....

Anyway it works fine now so thanks very much for your help.
Hannah Whitelaw
Horne Engineering Ltd
Glasgow
UK
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You're welcome.

Be sure to check out http://milonic.com/forum/viewtopic.php?t=2981 for a lot of good info.
John
Post Reply