In Progress

Cross browser javascript popunder

All browsers nowadays block popup windows and popunders. There are many workarounds for different browsers, and I need a cross-browser solution. I need you to provide a single-file javascript code, which will be included in a webpage like this:

< script > var popunder_url="[url removed, login to view]"; < / script >

< script src=[url removed, login to view] > < / script >

Your script will open a popunder and will load the URL from popunder_url variable inthere. Define: Popunder is a browser window opened under the current webpage while the original webpage still keeps focus.

Since automatically opened window is mostly blocked in all browsers, your script should attach appropriate event listeners on click events and open the popunder on first user click rather than on page load, because that way the browsers will let it go through. Several hacks may be needed to properly open the popunder on all browsers, including focus() and blur() manipulation, hidden iframe form submit, and so on. However since the user most likely clicks on a link which he wants to follow (even a link with target=_blank attribute), the user experience must be preserved - when the user clicks the link, the popunder should load under the current webpage and the current webpage must still behave like before: if the link clicked had no target attribute, it should simply load the link in current window. If the link clicked had a target=_blank attribute, a new tab or window must be opened which gets the focus, exactly the same as like if no popunder was opened.

The popunder must jump to back in all circumstances and the user must be able continue browsing the very same way like if the popunder was not opened. It is probable that the popunder will flicker for a short while while it is opening, that is acceptable, but then it has to blur to background.

It has to work properly in IE, Chrome and Firefox (all latest versions).

Skills: Javascript

See more: popunder cross browser, chrome popunder script, cross com, cross browser, chrome javascript, current url chrome, event javascript, cross work, open url chrome, chrome current url, javascript load file, cross iframe, javascript focus window, browser current url, javascript load click, load page javascript, script src, current url iframe, google javascript code, url google chrome, iframe _blank, javascript single page, chrome browser current url, chrome background open, current page url iframe

About the Employer:
( 67 reviews ) Sumperk, Czech Republic

Project ID: #4792801

Awarded to:


I know what you mean. It's something like those things in movie download site. :) I can do it for you.

$150 USD in 3 days
(23 Reviews)

4 freelancers are bidding on average $129 for this job


Hi Mr. I can do this project for you

$166 USD in 0 days
(4 Reviews)

hi, Hi, Greetings of the day and thanks for sharing these details and allowing me to bid on this assignment. we have already worked on a similar project before and can deliver as u have mentioned in your requi More

$249 USD in 12 days
(0 Reviews)

With me you will get it done professionally.

$111 USD in 2 days
(0 Reviews)

Extremely simple... I can do it quite fast

$88 USD in 3 days
(0 Reviews)