Jump to content

Button link


whitedark554

Recommended Posts

I'm trying to use an input button as a link but it isn't working to well...When I click the button, the link doesn't open.I'm using this code:

<a href="main.html"><input type="button" value="Enter"></a>

Is there anyway I can make that button a link?

Link to comment
Share on other sites

  • 1 month later...
U used to think that but have you tested it? buttons aren't at all affected by the a tag. You must use javasvript

Hi, guys. :)When I tested pulpfiction's button, (http://w3schools.invisionzone.com/index.php?showtopic=4987&hl=buttons), my web browser blocked the action until I allowed it. I'm just wondering if there is ANY other way to link a button to a web page w/out concerning the web site visitor about blocked actions.[edit]Nevermind...the web browser had to be set simply because I recently reformatted my system. Thank you for this helpful forum.TBolt
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...