how to reload a page in javascript code example

Example 1: refresh window js

window.location.reload();

Example 2: how to reload the same page using javascript

BY LOVE
window.location.reload();

Example 3: refresh page js

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

//else

document.location.reload();

Example 4: how to reload a page in javascript

location.reload();

Example 5: script refresh js

window.location.href = window.location.pathname + window.location.search + window.location.hash;

Example 6: how to auto refresh page in javascript

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

Tags:

Html Example