[thelist] input type="image" vs. input type="button"

Mark Groen evolt at markgroen.com
Mon Aug 21 16:16:44 CDT 2006


On Mon, 2006-21-08 at 13:58 -0700, jono at charlestonwebsolutions.com
wrote:
> I would like to use a custom image for the button on the example form
> below.  Using an image for the button breaks the form's functionality, but
> I am not sure why?
> 
> This does not work:
> 
> <div id="form-wrap">
>   <form name="example">
>     <label for="topics">Select a topic:</label>
>     <select name="topics">
>       <option value="selected">Tell me more about...</option>
>       <option value="http://www.page1.php">Page One</option>
>       <option value="http://www.page2.php">Page Two</option>
>       <option value="http://www.page3.php">Page Three</option>
>       <option value="http://www.page4.php">Page Four</option>
>     </select>
>     <input type="image" src="button.gif"
> onClick="location=document.example.topics.options[document.example.topics.selectedIndex].value;"
> value="GO" />
>   </form>
> </div>

http://lists.evolt.org/archive/Week-of-Mon-20000110/094306.html
-- 
cheers,

        Mark




More information about the thelist mailing list