“JavaScript -Aktualisierung Seite” Code-Antworten

Fenster aktualisieren js

window.location.reload();
Worried Wolf

So laden Sie dieselbe Seite mit JavaScript neu

BY LOVE
window.location.reload();
Light Leopard

JavaScript -Code, um die Seite automatisch zu aktualisieren

window.setTimeout(function () {
  window.location.reload();
}, 30000);

Aktualisieren Seite js

//with no cache
document.location.reload(true);
//else
document.location.reload();

/**
 * Si le paramètre est nul, recharge la page, sinon recharge la page avec le paramètre.
 * If the parameter is null, reload the page, else, reload the page with the parameter
 * @param [param=null] - Le paramètre que vous souhaitez ajouter à l'URL.
 */
function reloadPage(param = null){

    if ( param != null ){
        window.location.href = window.location.href.replace( /[\?#].*|$/, `${param}` );
    }

    else
    { 
        if ( window.location.href.split('?').length > 1 ){
            window.location.href = window.location.href.split('?')[0];
        }

        else 
            window.location.reload();
    }

    //param == null ? window.location.reload(): window.location.href = window.location.href.replace( /[\?#].*|$/, `${param}` );
}
Joyous Jaguar

Seite JavaScript aktualisieren

location.reload();
// OR
window.location.reload();
Anxious Alligator

JavaScript -Aktualisierung Seite

<script type="text/javascript">
    function autoRefreshPage()
    {
        window.location = window.location.href;
    }
    setInterval('autoRefreshPage()', 10000);
</script>
Majhi Bhai

Ähnliche Antworten wie “JavaScript -Aktualisierung Seite”

Fragen ähnlich wie “JavaScript -Aktualisierung Seite”

Weitere verwandte Antworten zu “JavaScript -Aktualisierung Seite” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen