- dimebag dinkman
- Feb 20, 2003
-
|
ronin109 posted:
An input with type="image" will allow you to use an image. An input type="image" works exactly like an input type="submit" except you can now give it an image source.
Not exactly. When you click on an image submit with name "myimagesubmit", it is apparently optional for the browser to submit the myimagesubmit=value key/value pair in the form data, and instead only send the mouse click co-ordinates myimagesubmit.x and myimagesubmit.y. Older versions of IE choose to take the option of not doing so.
quote:You could use the <button> tag though, and get what you wanted. <button type="submit">Some Crap</button> should work in IE6, and be styled with CSS just fine as well.
Unfortunately in IE6, if you have multiple <button type="submit">s on the same page, it will submit all of them not just the one you clicked on. And the value will be the HTML inside it, not the value="..." attribute.
dimebag dinkman fucked around with this message at 17:06 on Jul 14, 2009
|
#
¿
Jul 14, 2009 17:03
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
Apr 30, 2024 08:09
|
|