Reload the current page in JavaScript
Description
The following code shows how to reload the current page.
Example
<!-- w ww . ja v a2s . co m-->
<!DOCTYPE HTML>
<html>
<body>
<script>
location.reload(); //reload - possibly from cache
</script>
</body>
</html>
The code above generates the following result.
Javascript Tutorial Browser Location
Add search query to a URL in JavaScript
Change the hostname of location in JavaScri...
Change the path name property in Location o...
Change the port for location object in Java...
Force a reload from the server in JavaScrip...
Navigate to a URL without adding an entry i...
Navigate to the new URL and makes an entry ...
Add search query to a URL in JavaScript
Change the hostname of location in JavaScri...
Change the path name property in Location o...
Change the port for location object in Java...
Force a reload from the server in JavaScrip...
Navigate to a URL without adding an entry i...
Navigate to the new URL and makes an entry ...