Now listen everyone!This is a perfect example of what I am going to say here..Some properties differ in the HTML DOM from what the value has in HTML!!!When it does not work for you, test it like this, and it works like heaven!
The blue is to give you an alert. The green is to get the correct item you want to know something from, and the red is what you want to know of it. You can even apply the red a value, by adding after the red something like ="block"Edit: This can be done with every HTML DOM object :)This way you can supply yourself with some information about a document currently loaded into the browser window, without messingup the sourcecode. It gives you an alert with the appropriate value, that IS used, not to be confused with the value used in HTML.