- As we know that location object contains information about the current URL.
- The location object has a method named reload() method that reload current document.
Following are the main browsers which support the reload() method of location object
- Internet Explorer.
- Google Chrome.
The reload() method of location object has following syntax
Lets take an example
<body style ="background-color:yellow">
<input type="button" value="Reload page" onclick="reloadPage()" />
When we click on button it reload the current document
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here