August 1999
Intermediate to advanced
1488 pages
72h 53m
English
location.reload()
The reload() method is used to reload the current page displayed in the browser.
Listing 7.387 shows an example of how the reload() method is used.
<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> |
Read now
Unlock full access