Note: By default clicking outside of a menu will hide it. Additionally, menu items without a submenu or a URL to navigate will hide their parent menu when clicked. Click the "Show Menu" button below to make the menu visible if it is hidden.
To create a Menu with no pre-existing markup on the page, call the Menu
YAHOO.widget.Menu) passing the id of the Menu
element to be created as the first argument.
Add items to a Menu instance via the
Finally, it is necessary to call the
render method passing
the id of, or reference to the element the Menu should be appended to.