Possible Duplicate:
how to refresh a page using javascript?
how to reload (refresh) the web-page through java script only once not repeatedly. I want to refresh the page once at a time.
Possible Duplicate:
how to refresh a page using javascript?
how to reload (refresh) the web-page through java script only once not repeatedly. I want to refresh the page once at a time.
If you want to refresh (reload) the page you can use location.reload(true)
.
This link may help you to explore it further more Javascript Refresh Page
using history.go(0)
refreshes the current page
location.reload( true );
The parameter tells the browser, to always reload the current page from the server. If that is skipped or explicitly set to false
, the browser may load the page from its cache.
Options :-
window.location.reload()
window.location.href=window.location.href