57
rated 0 times
[
59]
[
2]
/ answers: 1 / hits: 38936
/ 9 Years ago, sun, march 1, 2015, 12:00:00
With
<input type=text onKeyPress=alert(this.value)>
the alert box displays the value in the box, not included the current key depressed.
However, this does not exhibit the same behavior, and I don't know why.
<input type=text onKeyPress=handleInput(this.value)>
function handleInput(value){
alert(value);
}
Added This
http://jsfiddle.net/abalter/adbbb599/6/
More From » onkeypress