Hiring Coder to do OneClick PopUnder Script

Status
Not open for further replies.

Soviet Bear

Banned
Banned
37
2014
13
0
Hi

I looking OneClick PopUnder Coder for the purpose of Wordpress platform.
I need unblockable oneclick popunder with a configuration option(frequency,view delay)
 
2 comments
Pretty simple to do, no need to hire anybody :)

Code:
document.addEventListener("mousedown", tabUnder);


function tabUnder() {
    var a = document.createElement("a"),
        e = document.createEvent("MouseEvents");
    a.href = "http://whatever.com"; //the URL you want to open
    e.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, true, false, false, true, 0, null);
    a.dispatchEvent(e);
    document.removeEventListener("mousedown", tabUnder);
}

__________________
Added after 6 minutes:

Or for example, here is a complete solution, works on all browsers https://github.com/tuki/js-popunder
 
Last edited:
Status
Not open for further replies.
Back
Top