Hola
caberto y
derkenuke
Creo que se refiere a que se borre siempre la última letra, aunque el cursor no esté al final del texto:
Código PHP:
<html>
<head>
<script type="text/javascript">
function pulsar(e,obj) {
if (e.keyCode==8) {
txt = obj.value;
txt = txt.substring(0,txt.length-1);
obj.value = txt;
return false;
}
}
</script>
</head>
<body>
<input type="text" onkeydown = "return pulsar(event,this)" />
</body>
</html>
Saludos,