I'm looking for a way to submit a search form if the user has stopped typing for say, 1 second.
I tried using setTimeout onkeyup, but of course, that starts running as soon as the first key is pressed, and therefore searches 1 second after that...
<input type="text" onkeyup="runTimer()" name="s" id="s" />
I tried using setTimeout onkeyup, but of course, that starts running as soon as the first key is pressed, and therefore searches 1 second after that...
<input type="text" onkeyup="runTimer()" name="s" id="s" />
Comment