There's one subtle difference on Firefox, when you're declaring a window load
event handler. Declaring the following in a script tag only works on Firefox:
function onload() {
alert(42);
}
You have to do it like this for IE, Opera, Safari or Chrome:
onload = function () {
alert(42);
}