javascript getElementsByTagName doesn't work
<p>Is there something wrong with the script? or that getElementsbyTagName is deprecated?</p>

<pre><code>&lt;script&gt;
t=document.getElementsByTagName('input')[0];
document.write(t.value);
&lt;/script&gt;
</code></pre>

<p>HTML:</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
Type here: &lt;input type='text' value="my value is high"&gt;
</code></pre>
