Basic Menu From JavaScript
Basic Menu From JavaScript
This example demonstrates how to create a Menu instance using nothing
but JavaScript.
Note: By default clicking outside of a Menu instance will hide it.
Additionally, MenuItem instances without a submenu or a URL to navigate to will
hide their parent Menu instance when clicked. Click the "Show Menu" button
below to make the Menu instance visible if it is hidden.
yui_2.7.0b.zip( 4,431 k)