...

View Full Version : Linking form button



many_tentacles
04-25-2006, 05:32 PM
Hi

I am trying to make a form button work as a normal link... It works fine in Safari but nothing happens if I click the link in IE/Win

Here's the code.


<a href="link.htm"><input name="xxxxxx" type="button" value="Click To Proceed" style="min-width: 120px; background:#fe9f34; font-weight:bold;"></a>

Any ideas?

Kravvitz
04-25-2006, 05:36 PM
Try using a <button type="button"> (http://www.w3.org/TR/html401/interact/forms.html#edef-BUTTON) element instead of an <input type="button">.

bustamelon
04-25-2006, 06:21 PM
You can also do a little javascript:


<input name="xxxxxx" type="button" value="Click To Proceed" style="min-width: 120px; background:#fe9f34; font-weight:bold;" onclick="parent.location='link.htm'">

Kravvitz
04-26-2006, 05:42 AM
Keep in mind that some Internet users use a browser that doesn't have JavaScript enabled. (http://www.thecounter.com/stats/2006/March/javas.php)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum