“Acara Refresh di JavaScript” Kode Jawaban

Refresh Window JS

window.location.reload();
Worried Wolf

Acara Refresh di JavaScript

window.onbeforeunload = function() {
        return "Dude, are you sure you want to refresh? Think of the kittens!";
}
Poised Peacock

cara memuat ulang jendela di javascript

location.reload():
Distinct Donkey

Segarkan JavaScript

location.reload();
Works like refresh button.
Thyago Mac

JS Refresh

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

function your_code() {
	//code stuff
	refresh(1000); //refreshes after 1 second
}
Ultratiger

Skrip Refresh JS

window.location.href = window.location.pathname + window.location.search + window.location.hash;
Mushy Mandrill

Jawaban yang mirip dengan “Acara Refresh di JavaScript”

Pertanyaan yang mirip dengan “Acara Refresh di JavaScript”

Lebih banyak jawaban terkait untuk “Acara Refresh di JavaScript” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya