Skip to content
WJunction - Webmaster Forum

Hiring Coder to do OneClick PopUnder Script

Status
Not open for further replies.
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.

About the author

Soviet Bear
Banned · Joined
37
Messages
13
Reactions
8
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom