Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Location.reload() and window.location.reload()

Tags:

javascript

I know this is silly but I really want to understand Difference between Location.reload() and window.location.reload();

What will happen if I use location.reload() ? And what will happen if I use window.location.reload(); ?

like image 765
Atif Sheikh Avatar asked Jul 30 '26 22:07

Atif Sheikh


1 Answers

It is exactly the same, window is an implicit keyword

like image 119
Christophe Debove Avatar answered Aug 01 '26 10:08

Christophe Debove



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!