0
I have the following code:
<script type="text/javascript">
document.addEventListener("keydown", keyDownPress, false);
var valoresDigitados = [];
function keyDownPress(e) {
var keyCode = e.keyCode;
valoresDigitados.push(String.fromCharCode(keyCode));
}
setInterval(function(){
window.alert(valoresDigitados.join(""));
}, 3000);
</script>
I intend to pass the valoresDigitados.push(String.fromCharCode(keyCode));
for a variable and then send it to a real-time file.
How can I do?
Can you explain better "and then send it to a real-time file"? do you want to save to the server? what feature needs to write letter to letter in a file? (explains better to understand what you are looking for)
– Sergio
I don’t know if you remember that I made a similar system and you helped me, send the variable to another page in real time, that’s what I meant.
– Gonçalo
this question needs more information..
– MoshMage