JavaScript – onclick reload page

There are several ways to reload a current page.

 

<input type=”button” value=”Refresh page” onclick=”location.reload(true)”>

 

<p>

<a href=”javascript:location.reload(true)”>Refresh page</a>

</p>

 

<input type=”button” value=”Reload Page” onClick=”window.location.reload()”>

 

<input type=”button” value=”Reload Page” onClick=”history.go(0)”>

<input type=”button” value=”Reload Page” onClick=”window.location.href=window.location.href”>

 

 

http://javascript.internet.com/page-details/refresh-page.html

http://www.mediacollege.com/internet/javascript/page/reload.html

Leave a Reply

Your email address will not be published. Required fields are marked *