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

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

Related Post

Site UptimeSite Uptime

Summary Statistics Report for NamranNet (www.namran.net) Since: February 21, 2007 Outages: 12 Total Uptime: 97.742% Total Downtime: 2.258% but… Last Check: April 24, 2007 at 10:01 AM PST+8.0 hahaha… i