Refresh / Reload page once Javascript
Be sure to subscribe to the TPCS blog.
![]()
|
Be sure to check out our gadgets (widgets) section! |
Sometimes you need for a web document to instantly reload itself but only once. This refresh / reload once Javascript does just that. As soon as the page loads it will refresh, but only once. This script will append ?reloaded=true to the page it reloads. If this is manually changed in browser it will continually reload the page.
Note, I found this script online with no credit intact. I did not write this, but I found it to be useful and thought I would pass it along.
The below Javascript should be placed in the HEAD section of your HTML document.
To download this refresh/reload once Javascript click here. |
![]() |
Did you find the PHP or Javascript you were looking for?
Searching for scripts can be a time consuming effort. Be sure to save this site as a favorite by clicking here. Mozilla and Firefox users must press 'CTRL D' to bookmark this website.
|
Having trouble with the refresh / reload once script you found here? Ask Dave from TPCS for help! |




