[thelist] Image Submit Button - Without JS ?

deke web at master.gen.in.us
Thu Mar 22 07:51:08 CST 2001

On 22 Mar 2001, at 8:09, Michele Foster wrote:

> This topic sort of came up the other day, but it isn't exactly the same
> question that I had.  I want to use a graphic as a "submit" button.
> <form method="post" name="orderform" action="customer.asp">
> yadda, yadda
> <a href="javascript:document.orderform.submit()">
> <img border="0" width="127" height="25" src="/continue.gif" alt="Continue">
> </a>
> My concern is that if a user has Javascript turned off, I don't think this
> will work.
> What to do?

You don't need that anchor. 

<input type="image" src="/continue.gif" width="127" 
height="25" alt="Continue" border="0"> does it in plain HTML.

onfocus, onblur, onselect, onchange, onclick, ondblclick,
onmousedown, onmouseup, onmouseover, onmousemove, 
onmouseout, onkeypress, onkeydown, onkeyup, onfocus,
onblur, onselect, and onchange can be used with <input>


I got this powdered water. 
Now I don't know what to add. 
            -- Steven Wright

More information about the thelist mailing list