I'm trying to understand the strange behavior of this code:
window.setTimeout(window.location.reload, 200);
In Firefox this throws a TypeError:
TypeError: 'reload' called on an object that does not implement interface Location.
In Chromium this throws another TypeError:
Uncaught TypeError: Illegal invocation
These two alternatives work fine:
window.setTimeout('window.location.reload()', 200);
window.setTimeout(function(){window.location.reload()}, 200)
Why?