How do you create an event that executes a function say once a second, is the only way to repeatedly call setTimeout? this seems kind of useless. What I want to do is have a function run once a second say, to check the contents of a text box to see if it has been changed, during while the user is typing in this text box and before or even after it losses focus, but not just after, like the onchange method.