getElementById Not Working Right
<p>Ok, so I'm REALLY new to programming and javascript, but I'm having a problem with this little string of code. The thing that is bothering me about it, is that I have done things similar to this in other programs, but it's just not working right in this specific little part of this program. Here is basically what isn't working:</p>

<pre><code>&lt;html&gt;

&lt;script type="text/javascript"&gt;

function test()
{
var myTextField = document.getElementById('myText');
document.write (myTextField);
}

&lt;/script&gt;


&lt;form&gt;
&lt;input type="text" id="myText"&gt;
&lt;input type="submit" value="submit" OnClick="test()"&gt;
&lt;/form&gt;
&lt;/html&gt;
</code></pre>

<p>When I do this, it returns [object HTMLInputElement] instead of the value of that text field. Thanks for any help cause I'm most of you know this. :P</p>
