Location.reload() to reload from cache : Location : Location JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Location » Location »

 

Location.reload() to reload from 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()'>
    <br>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Location
» Location