Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to go back old tab closing new tab in js

 localStorage.setItem('isRealdAble','false');
function gCFRTP() {
    setInterval(() => {
        var isReloading = localStorage.getItem('isRealdAble');
        if(isReloading=='true'){
            window.location.href = window.location.href;
        }
    }, 2000);
}
 
PREVIOUS NEXT
Tagged: #tab #closing #tab #js
ADD COMMENT
Topic
Name
8+3 =