linking a button

Suspended
Joined
30 Jan 2005
Posts
467
is there anyway to make a button into a link. for example the google search button, is there a way to make it go to a url instead of searching whatevers in the search box.

heres googles code.

<input maxlength="2048" size="55" name="q" value="" title="Google Search"><br><input value="Google Search" name="btnG" type="submit">
 
You can use JavaScript and an onClick action, but that'll break horribly if someone has JavaScript turned off. Best to use buttons the way they were intended (IMO).
 
You can make a dummy form for the job..

Code:
<form action="http://www.urlgoeshere.com" method="post">
<input type="submit" value="go go gadet url!" />
</form>
 
Back
Top Bottom