so you have to set a timeout of a few milliseconds
Yeah agreed, that doesn’t seem a clean approach. But, using the input event will avoid having to set a timeout.
the input event doesn’t work in IE
I have to admit I had to Google this – it seems older versions of IE that lack support have their own proprietary event onpropertychange
which can be used to achieve the same outcome. E.g
$(':input').on('input propertychange');
it also fires every time the title changes (every time you type a letter)
This is a pain! Maybe the input event could be fired only after a paste event? Would need your input on this… ( sorry for that bad attempt at a pun ?? )