Pop Under Code 2020
Updated January 2020
This code is used for running pop under traffic on your own site. It adds an onclick function to every link on the page which opens a new tab with the clicked link and changes the existing window (underneath) to a popped ad url.
Make sure you change the var puURL from http://Google.com to whatever you want to pop.
The number 3600 in the code is number of seconds to wait between the first pop and doing another one.
I tested it on desktop and mobile devices and it works on Chrome, Firefox, Edge & Safari.
If the original link includes a “_blank” field to open in a new tab then two additional tabs will be opened. One for the new link and one for the original url, the pop under will still load in the original window.
Demo Here: http://jamesbachini.com/misc/pudemo.html
You can view the code at: http://jamesbachini.com/misc/pu.js
- Copy code to a text editor and save as yourfile.js
- Edit the var puURL on the second line to make it your affiliate link or any other link
- Upload the file to your web server or host
- Test and profit