Answers for "javascript force refresh"

84

refresh page javascript

window.location.reload();
Posted by: Guest on April-05-2020
11

refresh page js

//with no cache
document.location.reload(true);

//else

document.location.reload();
Posted by: Guest on June-09-2020
2

javascript refresh page

<script type="text/javascript">
    function autoRefreshPage()
    {
        window.location = window.location.href;
    }
    setInterval('autoRefreshPage()', 10000);
</script>
Posted by: Guest on April-20-2021
2

refresh javascript

location.reload();
Works like refresh button.
Posted by: Guest on January-07-2021
0

refresh page javascript

location.reload();
// OR
window.location.reload();
Posted by: Guest on July-12-2021
0

js refresh

function refresh(milliseconds) {
	console.log("Refreshing");
	setTimeout("location.reload(true);", milliseconds);
}

function your_code() {
	//code stuff
	refresh(1000); //refreshes after 1 second
}
Posted by: Guest on October-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language