Friday, May 10, 2013

body onLoad not working in IE

Even though you may use
<body onnload="javascript:functionX;">      
to call the functionX, we have to give window.onload = functionX;
inside <script language="javascript"></script>



<script language="javascript">
window.onload = functionX;

functionX() {
             --------
             --------
}
</script>

For chrome and firefox window.onload is not needed........

I am using IE 9.0.8.112, (i.e) IE 9




No comments:

Post a Comment