<script type = "text/javascript">
function changeKey()
{
event.keyCode = 8;
}
</script>
<html>
<body>
<input type="text" id="txt_key" value="abcdefg" οnkeydοwn="changeKey()"/>
</body>
function changeKey()
{
event.keyCode = 8;
}
</script>
<html>
<body>
<input type="text" id="txt_key" value="abcdefg" οnkeydοwn="changeKey()"/>
</body>
</html>