To and Anchor on Page Load

Hi,

I am having trouble getting this to work on Ie6+

Basically i have a form which is below the fold which has validation using php on it. If there is an error when submitted the page will jump down to the form

<form ....><a name="Error1">...

using the

body onload="location.hash='#Error1''

This is working fine on FF but not Ie6+

Any suggestions?

IE6 is a pain.

Perhaps try: document.location.hash ?

Thanks for your reply but it would not work with IE6…

Any other solutions?