下拉导航 (select box)

  1. <html>
  2. <head>
  3.  
  4. <script type="text/javascript">
  5.  
  6. function go()
  7. {
  8. location=document.forms[0].gowhere.value
  9. }
  10.  
  11. </script>
  12.  
  13. </head>
  14. <body>
  15.  
  16. <form>
  17. <select id="gowhere" onchange="go()">
  18. <option>-Select location-</option>
  19. <option value="/asp/index.asp">ASP 教程</option>
  20. <option value="/html/index.asp">HTML 教程</option>
  21. <option value="/js/index.asp">JavaScripts 教程</option>
  22. </select>
  23. </form>
  24.  
  25. </body>
  26. </html>