Answers for "how to reload page without refresh js"

4

javascript code to refresh page automatically

window.setTimeout(function () {
  window.location.reload();
}, 30000);
Posted by: Guest on January-09-2022
0

update html page without refresh

$(function(){
    // don't cache ajax or content won't be fresh
    $.ajaxSetup ({
        cache: false
    });
    var ajax_load = "<img src='http://automobiles.honda.com/images/current-offers/small-loading.gif' alt='loading...' />";

    // load() functions
    var loadUrl = "http://fiddle.jshell.net/deborah/pkmvD/show/";
    $("#loadbasic").click(function(){
        $("#result").html(ajax_load).load(loadUrl);
    });

// end  
});
Posted by: Guest on April-19-2021

Code answers related to "how to reload page without refresh js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language