Hi, I have a logic, where I have to trigger the java script after a time delay but with little complications.
In a text field I am typing the word for search. If I type a letter and there is no further keyboard acitvity for one second it should call the java script automatically. In the same time, if I type a letter wait for half a second and again type a letter it should call the java script after I typed the second letter and and there is no keyboard activity for one second. This can be achieved by onkeyup and timedelay. But I am confused about how do this through java script. I am also wondering is there any way where I can identify the keyboard inactivity by any means.
Thanks for any kind of suggestion.
Thanks
In a text field I am typing the word for search. If I type a letter and there is no further keyboard acitvity for one second it should call the java script automatically. In the same time, if I type a letter wait for half a second and again type a letter it should call the java script after I typed the second letter and and there is no keyboard activity for one second. This can be achieved by onkeyup and timedelay. But I am confused about how do this through java script. I am also wondering is there any way where I can identify the keyboard inactivity by any means.
Thanks for any kind of suggestion.
Thanks