Javascript "this" reference for onclick event not working
<p>I'm trying to call a function with the "onclick" event as so:</p>

<pre><code>&lt;td id="A1" onclick="move()" class="white"&gt;&lt;/td&gt;
&lt;td id="A2" onclick="move()" class="painted bp"&gt;&lt;/td&gt;
&lt;td id="A3" onclick="move()" class="white"&gt;&lt;/td&gt;
</code></pre>

<p>In the function itself, i refer to "this":</p>

<pre><code>function move(e){
    var myId = this.id;
    alert("myId");
</code></pre>

<p>When I run the whole thing, the alert says 'undefined'. When I try <code>alert(this)</code> I get [object window].
I'm working with IE9, btw.
Thanks </p>
