Answers for "refresh 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
-1

js refresh element

document.getElementById("youriframeid").contentWindow.location.reload(true);
Posted by: Guest on August-14-2021

Browse Popular Code Answers by Language