Mega Code Archive

 
Categories / JavaScript Tutorial / Location
 

Location reload(false) to reload from the cache

The reload() method reloads the current page displayed in the browser. <html>     <head>     <title> Using the reload method of the Location object</title>     </head>     <body>     <form name="form1">     Click the button to reload the current page.     <br><br>     Location.hash value: <input type="text" name="text1" size=20>     <br>     <input type="button" name="load" value="Reload page" onClick='document.location.reload(false)'>     <br>     </form>     </body>     </html>