"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>
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