Image

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>

 

Categories: Java Script Tags: #JavaScript,

Newsletter Subcribe

Receive updates and latest news direct from our team. Simply enter your email.