ASP.NET Page gives error when used below javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rahulsankhe1089
    New Member
    • Jul 2014
    • 10

    ASP.NET Page gives error when used below javascript

    I am using below javascript
    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>
    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
Working...