JavaScript Browser Back Button Click Redirect To Custom URL.

JavaScript Browser Back Button Click Redirect To Custom URL.

Paste the below script in your first page.

<script type="text/javascript">
       if (performance.navigation.type == 2) {
       document.location.href = 'https://www.google.com/';
    }
</script>

 

Leave a reply

your email address will not be published. required fields are marked *

Name *
Email *
Website