A simple this context change example in Javascript
<p>I'm new to JS, and have read a lot about the quirk behaviour of the content changing of <code>this</code>, So I made a simplest example:</p>

<p><strong>HTML</strong></p>

<pre><code>&lt;button&gt;button1&lt;/button&gt;
</code></pre>

<p><strong>JavaScript</strong></p>

<pre><code>var button1, getText

button1 = document.getElementsByTagName('button')[0]

getText = function(){alert(this.textContent)}

button1.addEventListener('click', getText)
</code></pre>

<p><a href="http://jsfiddle.net/e95ME/" rel="nofollow">http://jsfiddle.net/e95ME/</a></p>

<p>But I can't see the context of <code>this</code> changed, since the code work. Anyone can change this code or give another simple example to show the quirk behaviour of content changing of <code>this</code>?</p>
