How to modify Dreamweaver's SpryMenuBar.js to send a msgbox on what menu was clicked?
- by Mike
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.