reload page javascript without refresh code example

Example 1: javascript refresh page automatically

<meta http-equiv="refresh" content="30"/>

Example 2: refresh page and run function after javascript

window.onload = function() {
    var reloading = sessionStorage.getItem("reloading");
    if (reloading) {
        sessionStorage.removeItem("reloading");
        myFunction();
    }
}

function reloadP() {
    sessionStorage.setItem("reloading", "true");
    document.location.reload();
}

Example 3: javascript reload page without refresh

<a href="javascript:window.top.location.reload(true)" class="continue">Continue</a>