Example: Multi-tiered Menu From JavaScript (YUI Library) [Examples Home]

This example demonstrates how to create a multi-tiered menu using nothing but JavaScript. The Menu API also supports building a menu like this using existing markup.

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.