js error null or not an object

 

 

 

 

Im getting a error in the Web Inspector as shown below:TypeError: null is not an object (evaluating myButton.onclick function() var userName Here is the JS undefined is null or not an object - IE6.Got a debug tool, which shows the error to be on jscalendar/lib/calendarstripped. js The part it hilights is if(weekend.indexOf(realday.toString())!-1) Confused about whats causing it - any ideas? The error message "Null is null or not an object" usually refers to a JavaScript or other coding error.I have started getting some error reports in Sentry from our JS app which look like this: TypeError null is not an object (evaluating elt. While I am developing an ASP.Net application, I am getting the below JavaScript error. This.form is null or not an object. As the error clearly states that it is a JavaScript error, I started checking all of my JavaScript code. At last I found the root cause to resolve the issue. Even more odd was it would work just fine on the 3 webparts on the page. The error message I was getting was a Error: style.display is null or not ana quick search and I found that that div tag with the wpbody and webpartid can cause and issue with javascript in IE, and since the dropdown for that As the error clearly states that it is a JavaScript error so i started checking all my Javascript code.Cause: If you are including javascript files in the page herader like the below: