Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

refresh window js

window.location.reload();
Comment

refresh page 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}` );
}
Comment

refresh page javascript

location.reload();
// OR
window.location.reload();
Comment

javascript reload page

// Works on iOS Safari as well
location.reload()
window.location.reload()
Comment

refresh page js

window.location.reload(true);
Comment

javascript refresh page

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

refresh javascript

location.reload();
Works like refresh button.
Comment

javascript reload page without refresh

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

auto refresh page javascript

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

PREVIOUS NEXT
Code Example
Javascript :: mongoose find multiple values one query 
Javascript :: jquery 3.6.0 
Javascript :: express cors specific origins 
Javascript :: how to compare two arrays javascript 
Javascript :: static variable in javascript 
Javascript :: javascript date for 5 seconds from now 
Javascript :: bootstrap open tab from link data-toggle="tab" 
Javascript :: define a class in javascript 
Javascript :: firefox freeze page 
Javascript :: javascript add an element to an array 
Javascript :: js binary search 
Javascript :: js end of string 
Javascript :: replace all javascript 
Javascript :: js hoisting 
Javascript :: how to include script file in javascript 
Javascript :: make button inside datatable 
Javascript :: accessing via name jquery 
Javascript :: declare function javascript 
Javascript :: on window resize and on page load 
Javascript :: js create json from object 
Javascript :: axios api post request 
Javascript :: what does getattribute return null for data-* attributes 
Javascript :: jquery find table from td 
Javascript :: react.createelement 
Javascript :: recursive reverse string 
Javascript :: create new connection in mongoose 
Javascript :: eliminar comillas de un string javascript 
Javascript :: discord js remove reaction from user 
Javascript :: hex string to decimal string javascript 
Javascript :: generate express app 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =