what does this.id return?
<pre><code>function test(){
alert(this);//alerts oblect
alert(this.id);//alerts undefined

}

&lt;input type="text" onKeyPress="test();" id="text1"&gt;
</code></pre>

<p>why does alert(this.id) alert <strong>undefined</strong>? Is this because <strong><em>this</em></strong> returns the <strong>document</strong> object?</p>

<p>Thank You</p>
