Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript button onclick reload page

const reloadtButton = document.querySelector("#reload");
// Reload everything:
function reload() {
    reload = location.reload();
}
// Event listeners for reload
reloadButton.addEventListener("click", reload, false);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #button #onclick #reload #page
ADD COMMENT
Topic
Name
8+9 =