[RESOLVED] Deleting characters on input textbox like Backspace
Hello people :)
I have this password saver i'm developing, and I made a virtual keyboard, so you type the characters with mouse clicks. The code for putting the characters in the input textbox is
PHP Code:
lolazo.text += "d";
and a letter "d" is placed in the input textbox each time you click the "D" button.
Now i want to delete one character, as the BACKSPACE button does in a keyboard. I tried:
PHP Code:
lolazo.text = lolazo.text.slice(0, lolazo.text.length=int-1);
but it deletes ALL the characters.
Help? :)