code doesn't work in FireFox?

code doesn't work in FireFox?

Hi,

So far I've been using this code:

<body OnLoad="javascript:document.getElementById('f').submit();">

to retrieve user information when loading a page. It has been working fine in IE for years, but now I also need it to work in FireFox. Unfortunately, in FF the page simply stops, and nothing is shown...

What is wrong with this code? Or is there a way to do the same thing using Jquery?

Kind regards,

Thomas (Belgium)