Example 1: Basic Menu From Existing Markup [Examples Home]

This example demonstrates how to create a basic menu using existing markup on the page. The Menu API also supports building a menu like this using nothing but JavaScript.