combo box for navigation

Results 1 to 2 of 2

Thread: combo box for navigation

  1. #1
    Join Date
    Dec 1969

    Default combo box for navigation

    I want to display a small form (containing a combo box) on a page to be used for navigation purposes on a site. The user should be taken to a particular web page based on his selection in the combo box. I know how to do this with a submit button using ASP. My question is "can this be done without the submit button" i.e. teh user is taken to a differrent site as soon as he selects an item in the combo box

  2. #2
    Join Date
    Dec 1969

    Default RE: combo box for navigation

    &#060;script language="javascript"&#062;<BR>&#060;!-- This goes in the head<BR>function GoURL(s)<BR> { var d = (s.options[s.selectedIndex].value);<BR> = d;<BR> s.selectedIndex=0;<BR> }<BR>//--&#062;<BR>&#060;/script&#062;<BR><BR>&#060;SELECT NAME="URL" ONCHANGE="GoURL(this);" LANGUAGE="JavaScript"&#062;<BR>&#060;OPTION value=""&#062;The Site Name<BR>&#060;/Select&#062;<BR><BR>This should work, I use it on my site<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts