Answers for "how to trigger a page to refresh in js"

84

refresh window js

window.location.reload();
Posted by: Guest on April-05-2020
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 "how to trigger a page to refresh in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language