1. Home
  2. Computing & Technology
  3. JavaScript

Drop Down Menu

4. Body Script

clr gif
Join the Discussion

Questions? Comments?

The final step is to create the script that goes at the top of the body section of your page to display the menu. Simply enter the address (URL) of your site map page and corresponding text description in the following form and select "Generate". The menub.js code should be saved into a file of that name. The body text needs to be inserted into your page immediately following the body tag to link to the Javascript code and to provide an alternate bar with a link to your site map for browsers without Javascript.

Site Map URL:
Site Map Text:
menub.js
body text
Explore JavaScript
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.