home *** CD-ROM | disk | FTP | other *** search
/ Web Designer 98 (Professional) / WebDesigner 1.0.iso / tutorials / tutorial / pulldown.txt < prev    next >
Encoding:
Text File  |  1997-06-15  |  976 b   |  29 lines

  1. <script language="JavaScript">
  2. <!-- Hide the script from old browsers --
  3.  
  4. // Michael P. Scholtis (mpscho@planetx.bloomu.edu)
  5. // All rights reserved.  Febuary 17, 1996
  6. // You may use this JavaScript example as you see fit, as long as the
  7. // information within this comment above is included in your script.
  8.   
  9.  
  10. function surfto(form) {
  11.         var myindex=form.dest.selectedIndex
  12.         window.open(form.dest.options[myindex].value,"main",""toolbar=no,scrollbars=no"); //change these both to "yes" to get the toolbar
  13. }
  14. //-->
  15. </SCRIPT><br>
  16. <CENTER>
  17. <FORM NAME="myform">
  18.   <SELECT NAME="dest" SIZE=1>
  19.     <OPTION SELECTED VALUE="">---------- A Simple Menu -----------
  20.     <OPTION VALUE="http://your.url">Title of URL1
  21.     <OPTION VALUE="http://your.url">Title of URL2
  22.     <OPTION VALUE="http://your.url">Title of URL3
  23.     <OPTION VALUE="http://your.url">Title of URL4
  24.   </SELECT>
  25. <P>
  26. <INPUT TYPE="BUTTON" VALUE="Pull Down Surfing!" onClick="surfto(this.form)">
  27. </FORM>
  28. </CENTER>
  29.