Hehehe I understood it myself!
In the keypress event for the text field:
window.setTimeout((function(self) { return function() { console.log(self.value); } })(this), 0);
This will give the current value of the text field, not the value until the key is pressed. I have only tested this on Firefox 4 so far.
Now my startup text box is as good as Facebook!
source share