ReferenceError: getElementsById is not defined why? : <p>I am trying to set a variable. </p>

<pre><code>var fname = getElementsById(fname);
</code></pre>

<p>A function will then reference this variable on body load</p>

<p>But the console returns ReferenceError: getElementsById is not defined</p>

<p>Why?</p>
