Hello all,

I'm trying to use the following script (which I didn't write) to create a dropdown list. When the 'go' button is pressed it will jump to the appropriate url:

<form name="htmlMenu">
  <select name="htmlSelList" size="1">
    <option selected value="#">Select a page, then Go!
    <option value="http://www.lycos.com">lycos</option>
    <option value="http://www.google.com">google</option>
    <option value="http://www.yahoo.com">yahoo</option>
    <option value="http://www.cnet.com">cnet</option>
    <option value="http://www.bnet.com">bnet</option>
  <input type="button" onClick="document.location = document.htmlMenu.htmlSelList.options [document.htmlMenu.htmlSelList.selectedIndex].value;"
this all works fine. My problem is that instead of the standard submit button, I tried using the following code so as to use an image for the 'go' button:

<input type="image" src="_images/goButton.gif" border="0" onClick="document.location = document.htmlMenu.htmlSelList.options [document.htmlMenu.htmlSelList.selectedIndex].value;" />
Using this line of code does not work? Any help as to why?

Thanks very much in advance!