Re: Search button
- From: "Jukka K. Korpela" <jkorpela@xxxxxxxxx>
- Date: Fri, 30 Nov 2007 16:35:46 +0200
Scripsit Toby A Inkster:
Shelly wrote:- -
If this is the case, then I am left with the single problem of the
not having an input button of type submit, but having an image
instead.
Huh? _What_ is the problem? If the problem is that you don't have a normal submit button, get one. ;-) If not, make sure that you are solving a problem and not creasting one.
<input type=image src="foo.png" alt="Submit Your Foo Query">
Well, the alt text is too long. The button text should seldom be longer than one or two words, like "Submit query". And you should also have the name="Submit query" and value="Submit query", for user agents that use _them_ and not the alt attribute as fallback.
If you give that input a name, then the browser should also add x,y
co- ordinates for the pixel that the user clicked on to the resultant
URL. Sometimes that's useful. Most of the time it's not.
The coordinates are not included unless there is a name="..." attribute.
But image submit buttons are almost always a bad idea. They are mostly used for esthetic reasons, but I don't think I've _ever_ seen such a button that looks better than, say, the default rendering of submit buttons on XP or Vista. I might say that _some_ of them were a slight improvement over the "ugly gray buttons" in stone-age browsers that are mostly used by freaks these days.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
.
- Follow-Ups:
- Re: Search button
- From: Toby A Inkster
- Re: Search button
- References:
- Search button
- From: Shelly
- Re: Search button
- From: BootNic
- Re: Search button
- From: BootNic
- Re: Search button
- From: Shelly
- Re: Search button
- From: Toby A Inkster
- Search button
- Prev by Date: Re: target _blank and opening a new window in Firefox
- Next by Date: Re: Does this page work in your Firefox?
- Previous by thread: Re: Search button
- Next by thread: Re: Search button
- Index(es):