Popunder Creator
The "Pop-Under" technique attempts to open a window and hide it behind the user's current browser, so they only see it after they close their main window.
Note: You may need to minimize this window to find the popunder.
Copy the Script
<script>
function popUnder() {
var win = window.open("https://www.google.com", "popUnder", "width=500,height=400");
if (win) {
win.blur(); // Blur the new window
window.focus(); // Focus the current window
}
}
// Trigger on click
</script>
<button onclick="popUnder()">Open</button>
Frequently Asked Questions
It uses the 'window.blur()' method on the new window and 'window.focus()' on the current window immediately after opening.
Chrome and Firefox aggressively block 'blur' events on windows to prevent malicious hiding of windows. Popunders are very difficult to achieve in modern browsers without user interaction (clicks).