I have the below script, to show me the number version of the keys that are pressed, but as you can see here in jsfiddle I have no idea, why it is not working in fiddle. But, the I am just trying to have earlier inputs saved, because everytime I pressed a key, the previous number gets deleted and a new numbers corresponding the key pops up.
<script type="text/javascript">
function displayunicode(e){
var unicode=e.keyCode? e.keyCode : e.charCode
document.getElementById("op").innerHTML = unicode;
}
</script>
<form>
<textarea onkeyup="displayunicode(event);" ></textarea>
<div id="op"></div>
</form>
