HTML Buttons not working in IE8

I don't have a solution but I admire the problem.

HTML Buttons not working in IE8

Postby ShiftPoint » Tue Sep 29, 2009 1:43 pm

After wanting to punch the monitor a few times I finally found out why my buttons were not working in IE8.

* :evil: Disclamer - IE8 is worthless, absolutely worthless and it angers me to have to make my websites work in IE8 :evil: *

Now with that said... here is an example of what I was trying to accomplish and it works in all browsers EXCEPT for IE8.

Code: Select all

<a href="index.php" ><button type='button' class='button' />Add</button></a>



When clicking the button it would go to the "index.php". Not in IE8 however. I had to do this in order to get it to work.
Code: Select all
<button type='button' class='button' onclick="location='index.php'" />Add </button>


I guess if the button isn't tied to a form it like to be difficult!
User avatar
ShiftPoint
 
Posts: 70
Joined: Sun Jul 05, 2009 4:52 pm
Location: Pickerington, OH

Return to HTML \ DHTML

Who is online

Users browsing this forum: No registered users and 0 guests

cron