"document.body.onload" Safari Issue

Hi,

I have a javascipt block in my page. The works fine in IE browser, but not in Safari.
When I debug the code, I found cause for the problem and its "document.body.onload"

I am calling a jsDefaults() in onLoad, this is not getting called when browser is Safari. How to fix this?

Code:
<script language="javascript">
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.forms("EMPLOYEE");
}

document.body.onload = function jsDefaults(){

}
</script>

Windows, Windows XP

Posted on Jan 29, 2008 12:25 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"document.body.onload" Safari Issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.