Skip to content
WJunction - Webmaster Forum

Looking for Tabunder Javascript Or Code

Status
Not open for further replies.

1 comment

Tabunder code is pretty straightforward. Here's a basic implementation:
```
window.open('about:blank', '_blank');
window.focus();
```
However, modern browsers (especially Chrome) block this aggressively. You'll need to trigger it on user interaction (click) for it to work reliably.
A more robust approach:
```
document.addEventListener('click', function() {
var w = window.open('your-url', '_blank');
if (w) { w.blur(); window.focus(); }
}, {once: true});
```
This only fires once per page load and requires a user click. Most ad networks (Adsterra, Clickadu) have their own tabunder scripts built in — it's easier to use their implementation than to roll your own.
 
Status
Not open for further replies.

About the author

F
Active Member · Joined
343
Messages
105
Reactions
43
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom