How do I prevent the user from entering '>' and '<' characters with javascript?
<p>I want to prevent user from entering '>' and '&lt;' character. How should i do this? I tried to implement this by ( via javascript) detecting their keycodes but since '>' and '.' have the same keycode, it also prevented '.' from being entered. The same happens for the ',' and '&lt;' characters. How should i do this?</p>

<p>Below is what i have tried.</p>

<pre><code>    $('#Notes').bind('keydown', function() {
        if (window.event) {

            if ((window.event.keyCode == 190) || (window.event.keyCode == 188)) {
                return false;
            }
            else {
                return true;
            }


        }
    });
</code></pre>
