Michael Lambert wrote:
> I seem to be getting an error on this line:
> d = this.window.document
> this.element = d.getElementById(this.id);
Michael Lambert wrote:
> The error I am getting, incidently is "this.element" has no properties.
someone was asleep at the w3 wheel. Here's a lecture:
document.getElementById is the w3 dom way to get an item
document.ID is the IE way to get an item.
when you're trying to use the w3 way, you shouldn't be using the IE way as a param to
the w3 way. It won't work anywhere that isn't IE.
And doing it in IE is a waste of cycles.
d.getElementById("myid") should work nicely for <div id="myid">this is something i
really don't want or maybe I do</div>
For more information, I'm sure there's a w3 primer somewhere, try devedge.netscape.com