Popup A New Window When Clicking On Browser Back Button – Goback-popup

Category: Javascript | December 30, 2019
Authorzexceed12300
Last UpdateDecember 30, 2019
LicenseGPL-3.0
Tags
Views902 views
Popup A New Window When Clicking On Browser Back Button – Goback-popup

Goback-popup is a JavaScript library that uses history() API to open a random URL in a new window as you click the back button in the browser.

How to use it:

1. Insert the randPopup.js script into the document.

<script src="randPopup.js"></script>

2. Override the default URLs in the JS.

var randURL = [
    "https://www.jqueryscript.net/",
    "https://cssscript.com/",
    "https://www.google.com/"
];

You Might Be Interested In:


Leave a Reply