Not able to enumerate all properties of an object in javascript
<p>I am a newbee with javascript and have the following code:</p>

<pre><code>&lt;html&gt;
    &lt;body&gt;
    &lt;object classid="clsid:f6D90f11-9c73-11d3-b32e-00C04f990bb4" id="abc"&gt;
    &lt;/object&gt;
    &lt;script&gt;
    var b=document.getElementById("abc");
    for (a in b){
        document.write(a+"&lt;br&gt;");
    }
    alert(b.object);
    &lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Now, my question is why doesnt this code enumerates all the properties for the object b.
And to be more specific, this code does not enumerates the "object" property. But the code alert(b.object) tells me that this is an object.</p>

<p>Am I doing everything right? can someone clarify my doubts.</p>

<p>Thanks</p>
