Click to See Complete Forum and Search --> : Object Required error - Why?


learninghtml
10-23-2003, 05:44 PM
Hi,
I got some javascript (1.2) to animate snowflakes on my webpage (in preparation for Xmas).

When I run the page I get an "Object Required" error in the following code (error line marked).


var doc_width = 800;
var doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth; **** Error here ****
doc_height = document.body.clientHeight;
}


Can anyone tell me why?

Many thanks advance.

Jona
10-23-2003, 08:09 PM
Somewhere along the line, you are calling a function that does not exist. That is what the error means...

[J]ona