Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Shelleuk
Advanced
Posts: 22 Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:
Post
by Shelleuk » Thu Mar 11, 2004 4:08 pm
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
Michelle Cannon
Ruth
Team
Posts: 8763 Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:
Post
by Ruth » Thu Mar 11, 2004 8:41 pm
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
Posts: 22 Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:
Post
by Shelleuk » Fri Mar 12, 2004 11:10 am
Thanks Ruth - will check that out
Michelle Cannon
Andy
Milonic
Posts: 3308 Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:
Post
by Andy » Fri Mar 12, 2004 11:49 am
Try this:
aI("text=Print;url=javascript:window.print()");
-- Andy
Shelleuk
Advanced
Posts: 22 Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:
Post
by Shelleuk » Fri Mar 12, 2004 3:15 pm
great - thanks Andy.
Michelle Cannon