How to modify Dreamweaver's SpryMenuBar.js to send a msgbox on what menu was clicked?

Posted by Mike on Pro Webmasters See other posts from Pro Webmasters or by Mike
Published on 2012-11-10T08:10:35Z Indexed on 2012/11/10 11:15 UTC
Read the original article Hit count: 291

Filed under:
|

I have a simple HTML webpage made in Dreamweaver with a SpryMenuBar. When I click on a menu item, I want to send a pop up message box that says which menu item was clicked. (This is not really my objective but once I can learn to hook into the spry java script with a mouse click listener I can try to do what I am really after.)

The problem is for some reason I can't seem to get started with this seemingly simple task.

Does anybody know how to revise the SpryMenuBar.js to make a msgbox showing the item that was clicked? For example if I click a menu that say's 'Contact us', I wan't to throw a message box that says "You pressed, Contact us".

Note: My final objective is to actually call another function that changes text in the center of my page, depending on what menu item was clicked.

© Pro Webmasters or respective owner

Related posts about JavaScript

Related posts about dreamweaver