refresh page on div click

Solutions on MaxInterview for refresh page on div click by the best coders in the world

showing results for - "refresh page on div click"
Ricardo
23 Jul 2019
1<div id="refresh" onClick="refreshPage()">refresh
2    <!-- <button type="button" onClick="refreshPage()">Close</button> -->
3</div>
4
5<script>
6function refreshPage(){
7    window.location.reload();
8} 
9</script>