I am using below javascript
To show loading image and hide when page loads but it gives error.
Line: 3
Error: Unable to get value of the property 'appendChild': object is null or undefined
The same page works well on chrome and fire fox
Where i am wrong
Please Help
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript">
$(window).load(function () {
$("#pageloaddiv").fadeOut(2000);
});
</script>
Line: 3
Error: Unable to get value of the property 'appendChild': object is null or undefined
The same page works well on chrome and fire fox
Where i am wrong
Please Help