Gernot Back: IE und Firefox

Beitrag lesen

Hallo Patrick,

weswegen ein if-Zweig in der Art:

if (document.getElementById('the_id').style.top == 0) {
tu_was();
}

  

> hämisch übergangen wird ;)  
  
~~~javascript
  
if (parseFloat(document.getElementById('the_id').style.top) == 0) {  
   tu_was();  
}

Sollte aber immer funktionieren.

Gruß Gernot