Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to reload page on button click in javascript

<button type="button" onClick="refreshPage()">Close</button>

<script>
function refreshPage(){
    window.location.reload();
} 
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reload #page #button #click #javascript
ADD COMMENT
Topic
Name
7+6 =