Skip to content Skip to sidebar Skip to footer

Full Refresh Of Page - Ctrl+f5

I would like to know how to implement a 'ctrl+f5' command into my HTML page. I can use javascript or html. It should be run only when people click in a link. Thanks, Alex

Solution 1:

You should be able to use this javascript to suite your need:

onClick="window.location.reload(true)"

window.location.reload(true) has been deprecated. You can use:

window.location.href = window.location.href

Solution 2:

Something like this?

<ahref="document.location.reload(true);document.location='/mylink'">Click here to refresh the page</a>

Solution 3:

you can create a button for refresh , add the following code into your html page

<ahref="JavaScript: location.reload(true);">Refresh page</a>

Post a Comment for "Full Refresh Of Page - Ctrl+f5"