What do you mean doesn't seem to work? Here is what you are saying now:
If there an onblur event handler: execute DTitChange once ever second. Else document.title = dtit
Most likely, this is not what you want. Try
window.onblur = function () { setTimeout(function () { DTitChange(name) }, 1000); };
also make sure you set the onfocus handler to clear the timeout if you want it to stop when the user returns. :)
source share