Odśwież okno JS
window.location.reload();
Worried Wolf
window.location.reload();
window.onbeforeunload = function() {
return "Dude, are you sure you want to refresh? Think of the kittens!";
}
location.reload():
location.reload();
Works like refresh button.
function refresh(milliseconds) {
console.log("Refreshing");
setTimeout("location.reload(true);", milliseconds);
}
function your_code() {
//code stuff
refresh(1000); //refreshes after 1 second
}
window.location.href = window.location.pathname + window.location.search + window.location.hash;