Cross browser javascript popunder

Budget $30 - $250 USD
Bids 5
Average Bid $153

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).

Post a Project Like This

This project was awarded to

About the Freelancer

Looking to make some money?

  • Set your budget and the time frame
  • Outline your proposal
  • Get paid for your work

Bids on this Project

  • micheltobon Profile Picture


    Puebla,  Mexico

    I have completed my CSS Designer course and I am looking for a best company to be hired. I am interested to take up the contract of Designer and I think my qualification will suit the best for that position. I have a vast experience in an array of fields and I accept new challenges. I have lot of practical experience as a CSS Designer and HTML Programmer. As I have ample knowledge in Javascript I can handle well this segment too if required to. I am confident that with so much of versatility I will fit well for your requirement. I am available for hire to work on your projects today.

    PHP, Javascript, AJAX, and iPhone

  • calmeyda Profile Picture


    Lima,  Peru

    Systems Engineer with a passion for web development, self-taught. Over 7 years experience in web development. Knower of technologies like html5, css, js, jquery, php, symfony2, drupal, mysql, postgresql, stylus, responsive design, ... Please check out my portfolio to see the quality of my work, all seriousness.

    PHP, Javascript, Linux, and SEO

  • ModularGuy Profile Picture


    Yangon,  Myanmar

    8 years experienced both in-person and telecommute. Can develop a system from head to toe but prefer UX development with jQuery.

    Javascript, XML, AJAX, and Shopping Carts

  • generationxsl Profile Picture


    Islamabad,  Pakistan

    Should be ready for challanging task

    PHP, Javascript, Adobe Flash, and Website Design