The first question that most people have asked me is, ‘Why would you want to?’
The answer is because I want to cause a form post back and the control needs to be styled like a hyperlink.
If you build websites using ASP.Net and C#, you have three controls that can do this, the standard form button, the image button and the hyperlink button.
The obvious choice would be the hyperlink button. This, however, has a fundamental flaw; it does not work when the user has JavaScript disabled. Many disabled Internet users require the use of applications that do not support JavaScript. This is why the WCAG accessibility guidelines say that the site should still be useable without JavaScript. This is practice means that JavaScript can only be used for non essential functionality and cannot be used for submitting a form.
What web browsers will this work with?
The following CSS has been tested with Internet Explorer 6 and 7, FireFox 2 and 3 and Safari 3, all on Windows. These are the standard supported browsers platforms most developers need to support, however I cannot see a reason why it should not work on other operating systems.
More...