how to add a javascript action when i change the input's content?
<p>I'm trying to make some validation using javacript, i need to show the user an alert when he/she changes the value of an input.</p>

<pre><code>&lt;input type="text" name="onchange" id="onchange" size="35" maxlength="50" /&gt;
</code></pre>