Kai345: testen ob "element has no properties"

Beitrag lesen

[latex]Moin![/latex]

nein, ich benutze prototype.js und auf eine bestimmte Seite schmeißt ein Fehler:
element has no properties
if ( element.offsetTop != null ) {
dein Beispiel funz also nicht.

Versuche es mit typeof

Cü,

Kai

--
I got sunshine in my stomach, Like I just rocked my baby to sleep.
I got sunshine in my stomach, But I can't keep me from creeping sleep,
Sleep, deep in the deep.
ie:{ fl:( br:< va:) ls:? fo:| rl:? n4:° ss:{ de:] js:| ch:? mo:| zu:|]