refresh only a div javascript code example
Example: refresh page on div click
<div id="refresh" onClick="refreshPage()">refresh
<!-- <button type="button" onClick="refreshPage()">Close</button> -->
</div>
<script>
function refreshPage(){
window.location.reload();
}
</script>