Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript refresh element

function reload(){
    var container = document.getElementById("yourDiv");
    var content = container.innerHTML;
    container.innerHTML= content; 
    
   //this line is to watch the result in console , you can remove it later	
    console.log("Refreshed"); 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #refresh #element
ADD COMMENT
Topic
Name
9+1 =