Mahmoud Zakal
Mahmoud Zakal

Reputation: 128

using location.reload in edge doesn't work

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

Answers (2)

JIJOMON K.A
JIJOMON K.A

Reputation: 1280

Please try this

setTimeout(function(){ location.reload(); }, 2000);

Upvotes: 0

Dilip Solanki
Dilip Solanki

Reputation: 437

Syntax like this

setTimeout(function(){ alert("Hello"); }, 3000);

Upvotes: 1

Related Questions