Answers for "reload div javascript"

1

relode div

function updateDiv()
{ 
    $( "#here" ).load(window.location.href + " #here" );
}
Posted by: Guest on April-22-2020
0

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>
Posted by: Guest on January-08-2021

Browse Popular Code Answers by Language