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
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
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
Something like this?
<a href="document.location.reload(true);document.location='/mylink'">Click here to refresh the page</a>
you can create a button for refresh , add the following code into your html page
<a href="JavaScript: location.reload(true);">Refresh page</a>
for automatically refresh you can use a function , like this !
<html>
<head>
<script type = "text/JavaScript">
<!--
function AutoRefresh( t ) {
setTimeout("location.reload(true);", t);
}
//-->
</script>
</head>
<div id="54666751046"><script type="text/JavaScript" src="https://www.aparat.com/embed/OCINE?data[rnddiv]=54666751046&data[responsive]=yes&muted=true&autoplay=true"></script></div>
<body onload = "JavaScript:AutoRefresh(5000);">
<p>This page will refresh every 5 seconds.</p>
</body>
</html>