Namran Hussin Blogger Stuff TypeError: document.observe is not a function

TypeError: document.observe is not a function

In one of my java script file got the following line :

Event.observe(window,'load',ls.init,false);

So, when I load the chrome browser, it throw an error as below:

 TypeError: document.observe is not a function

Solution:
Just change the above line to the following.

$(window).load(function(){ ls.init; });

1 thought on “TypeError: document.observe is not a function”

Leave a Reply to user-533698 Cancel reply

Your email address will not be published. Required fields are marked *

Related Post