0
The Javascript code below, which serves to "bar" character > (asc 60) only works on desktop devices and not on mobile devices.
<textarea name='notes' id='ta' wrap='physical' cols='65' rows='8' style='width: 80%;' tabindex='14'></textarea>
<script>
var ta = document.getElementById("ta");
ta.addEventListener('keypress',
function (e) {
if (e.keyCode == 60) {
alert('N\u00e3o use <');
e.preventDefault();
}
}
);
</script>
It seems that the Keyboardevent.keycode this Deprecated
– Icaro Martins