title: Get all properties of an HTML element without running JS inside browser
body: <p>I need to find all available properties of any HTML element. </p>
  
  <p>Using javascript if we have to find all properties of an html element we do this</p>
  
  <pre><code>function getAllProps(objects){
      props = []
      for(var key in objects) {
          props.push(key)
      }
      return props;
  }
  </code></pre>
  
  <p>And we use above function in this way:</p>
  
  <pre><code>var btn = document.createElement("BUTTON");
  document.body.appendChild(btn);
  console.log(getAllProps(btn));
  </code></pre>
  
  <p>Above code is completely browser dependent. We need to run this code inside browser to get it running. </p>
  
  <p>I want to know, is it possible to do the same using cscript.exe or any other external JS interpreter?</p>
  
  <p>Thanks in Advance,</p>