Print page in my menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Shelleuk
Advanced
Advanced
Posts: 22
Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:

Print page in my menu

Post by Shelleuk »

I'd like to include a Print page button in my menu and use this ordinarily:

<a href="#" onClick="window.print()">Print</a>

Can someone tell me how to edit the string to include this function ?

Michelle :roll:
Michelle Cannon
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I think you might have to set up some kind of function at the top of the menu data file and then call it in that particular item. If you do a search for onclick on the forum you'll see a number of questions for using some kind of javascript function and on click in the menu. They might give you some ideas.

Ruth
Shelleuk
Advanced
Advanced
Posts: 22
Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:

Post by Shelleuk »

Thanks Ruth - will check that out
Michelle Cannon
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Try this:

aI("text=Print;url=javascript:window.print()");

-- Andy
Shelleuk
Advanced
Advanced
Posts: 22
Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:

Post by Shelleuk »

great - thanks Andy.
Michelle Cannon
Post Reply