When are all the browsers going to unite? It's hard enough to build solid web applications within reasonable time. For as long as I've been building web applications, it would be a dare to say that every application that I build work in at least the top 3 major browsers, and that's because I learn something new everyday and it just doesn't happen that way.
Today while working on a new project for one of my clients, I was being all fancy by using the "Button" element which I don't normally do. Instead of using "<button>", I usually use "<input type=button". however, today I was going out of habit and to my surprise the "<button>" control does not work the same way across browsers.
Example, if you create a simple button control on a basic html form an perform a simple task on the onclick event such as a redirect, you will find out really quickly that it works perfectly fine in IE but not in FF.
<button onclick="window.location.href='somepage.html';">New Page</button>
It turns out that in FF, the default action for the button control is to submit a form, so you have to return false to use the button control for anything else other than submitting a form.
<button onclick="window.location.href='somepage.html';return false;">New Page</button>
weird huh?