How-to refresh specific tag without refresh page using JavaScript

in this code we learn how refresh body or specific tag after some time, to do this call the tag that you want to refreshed and innerHTML again like this code bellow
setTimeout(function(){ 
 var bodyref =  document.getElementById("div").innerHTML;
    document.getElementById("div").innerHTML = bodyref;
     }, 9000);

How-to refresh specific tag without refresh page using JavaScript

© Manajmnt code

Share to :

Comments