Help - Search - Members - Calendar
Full Version: Button submit in ahref?
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
PCessna
Hey all,

On my website, I am trying to get the coding for a submit button,
CODE
<input type="submit" name="sa" value="Search" />

In a href form.

Any Ideas?
pandy
Do you mean you want to put it inside a link? You can't. What is you want to accomplish though? maybe there is another way to do it.
PCessna
QUOTE(pandy @ Aug 15 2008, 05:22 PM) *

Do you mean you want to put it inside a link? You can't. What is you want to accomplish though? maybe there is another way to do it.

it is a google search thing, I hate the look of a button, my goal is to make it an a href to submit the google search, enter currently works, so may is there javascript to act as hitting enter button?
pandy
You ask the wrong questions. The right question is "How do I make a submit button look like a link?". happy.gif

CODE
<input type="submit" style="border: none; background: inherit; color: blue; text-decoration: underline">
PCessna
QUOTE(pandy @ Aug 15 2008, 05:31 PM) *

You ask the wrong questions. The right question is "How do I make a submit button look like a link?". happy.gif

CODE
<input type="submit" style="border: none; background: inherit; color: blue; text-decoration: underline">


Thanks! have a great day smile.gif
pandy
I should have said that the above may not work in all browsers. But it will work in most modern browsers.
PCessna
QUOTE(pandy @ Aug 15 2008, 05:44 PM) *

I should have said that the above may not work in all browsers. But it will work in most modern browsers.

Naw, thats ok, thanks smile.gif
PCessna
http://pcessna.wise-projects.com/net/

That's final search box smile.gif

Thanks for help all smile.gif
pandy
Hmm. The button picks up the browser's background color in some browsers. I guess you lack a background color somewhere where you should have one in the CSS. You could always use a color value for the button background, but maybe it's better to find where one is missing.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.