mddanishyusuf / dailyhack

🐱‍💻 Tiny Tiny Hacks we use in our daily life.
https://dailyhack.now.sh/
149 stars 15 forks source link

How to reload a page using JavaScript #60

Open AnTheMaker opened 5 years ago

AnTheMaker commented 5 years ago

You can simply use location = location; or location.reload(); in your JavaScript to reload the page current page.

533 more ways how you can do it: http://www.phpied.com/files/location-location/location-location.html

AnTheMaker commented 5 years ago

lol 😂

mddanishyusuf commented 5 years ago

@AnTheMaker the post is too long. can you just list 5-6 way and then give the source link that will be good. Thanks

AnTheMaker commented 5 years ago

haha I know, I was just amused on how many ways there are actually.

AnTheMaker commented 5 years ago

You can simply use location = location; or location.reload(); in your JavaScript to reload the page current page.

533 more ways how you can do it: http://www.phpied.com/files/location-location/location-location.html

radioblahaj commented 5 years ago

This is cool!