Reputation: 128
I'm trying to refresh my page after using some event
using this javascript method
setTimeout(location.reload.bind(location), 2000);
it's work as well in Chrome but when I tried it in Edge it gives error
SCRIPT65535: Invalid calling object
Upvotes: 0
Views: 1394
Reputation: 1280
Please try this
setTimeout(function(){ location.reload(); }, 2000);
Upvotes: 0
Reputation: 437
Syntax like this
setTimeout(function(){ alert("Hello"); }, 3000);
Upvotes: 1