getting a list of properties and functions of any object
<p>I'd like to iterate over the properties and functions of any kind of a javascript object(IDBKeyRange in this case).</p>

<p>I tried using the following code :-</p>

<pre><code>  &lt;script type="text/javascript"&gt;
    var arr = Object.getOwnPropertyNames(IDBKeyRange.only(43));
    for(var i=0;i&lt;arr.length;i++) {
    document.write(arr[i]+"&lt;/br&gt;");
    }
  &lt;/script&gt;
</code></pre>

<p>However, it fails to show me a list of properties and methods -- what am I doing wrong?</p>
