title: js get element from window['id'] vs document.getElementById('id')
body: <p>What is better and what is the difference (performance, browser support...)?</p>
  
  <p>I thought that DOM elements that have an id automatically create in a window object so you don't need to find them in DOM through getElementById. Am I right and what problems it could bring? I can't find any documentation on such a possibility of js window object.</p>
  
  <p>Examples with window:</p>
  
  <pre><code>window['elementId'];
  window.elementId;
  </code></pre>
  
  <p>The same result as getElementById and querySelector</p>