Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form button as a link question (non-javascript) 1

Status
Not open for further replies.

vego

Programmer
Jun 26, 2004
47
US
I'm searching for a NON-JAVASCRIPT form button solution for use as a link to another page. I found this on the NET, but am curious as to whether it is a viable cross-browser solution. It does work in IE... not sure of other browsers.
Anyone?

Code:
<form method="link" action="somepage.htm">
<input type="submit" value="go to somepage">
</form>
 
This is a simple form submission to the page defined in the action property, and will work in any browser that supports forms.

I've never seen method="link" in a form before, and haven't found any documentation on it, so I'd just leave the method as "post". This will also leave any ? off the link in the address bar that would be left there with method="link" and method="get".

Hope this helps...

*cLFlaVA
----------------------------
Ham and Eggs walks into a bar and asks, "Can I have a beer please?"
The bartender replies, "I'm sorry, we don't serve breakfast.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top