Delete keycode not returning in JavaScript
<p>Values of all the keys are returning except <code>delete</code> in the following code:</p>

<p>JavaScript Code</p>

<pre><code>function charCnt(evt) {
            var inp = (evt.which) ? evt.which : event.keyCode;
            alert(inp);
            return true;
}
</code></pre>

<p>HTML</p>

<pre><code>&lt;textarea id="txt" onkeypress="return charCnt(event)"&gt;&lt;/textarea&gt;
</code></pre>
