dailyhack icon indicating copy to clipboard operation
dailyhack copied to clipboard

How to reload a page using JavaScript

Open AnTheMaker opened this issue 5 years ago • 5 comments

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 avatar Apr 14 '19 13:04 AnTheMaker

lol 😂

AnTheMaker avatar Apr 14 '19 13:04 AnTheMaker

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

mddanishyusuf avatar Apr 14 '19 15:04 mddanishyusuf

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

AnTheMaker avatar Apr 14 '19 16:04 AnTheMaker

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 avatar Apr 14 '19 16:04 AnTheMaker

This is cool!

radioblahaj avatar Apr 22 '19 04:04 radioblahaj