HTML Buttons not working in IE8?

smart guy

New member
I've been doing some more work on my webpage using HTML. The part that's been giving me trouble is that the buttons don't work on IE 8, yet they did on the older versions of IE and on the current version of Firefox. On the Firefox browser, if you click on the button, it will take you to a different page, yet on the IE8 when you click on the button it does nothing. Any advice or comments?

The specific piece of code (well, it's just a snippet of the code; none of the buttons work in IE8) that I'm having trouble with is...

<a href="contact.html"><input type = "button" value = "Our Contact"></a href>

I'm kinda stumped here.
 
you're doing it wrong. whats the button supposed to do? you have to add javascript to make the button do something unless its in a form

<form action="action_file.php" method="get">
<input type="text" name="name"/>
<input type="password" name="password"/>
<input type="submit" value="Submit"/>
</form>

or

<input type="button" value="Say Hie" onclick="alert('Hello!!')"/>

and dont put those spaces between =
 
You don't anchor buttons, you either make a form with a submit, or an onClick event:
<input type='button' value='Go To Google' onClick='location="http://www.google.com"' />

A form that leads to a different page can be shown as this:
<form method="post" action='http://www.somesite.com'>
<input type='submit' value='Submit Form' />
</form>

Good Luck!
 
Back
Top