function () {
alert("Yay! JavaScript menu!")
return {
"Option 1" : "Option 1",
"Option 2" : "Option 2"
};
}
Replace the alert
function with your own code, and replace Option 1
and Option 2
texts with what you want the menu to display.
Example (Yes I know it's rude)