FORCE NEW WINDOW (POP UP) FOR WEBSITE VISITORS

This Free API helps you to redirect your website visitors to another website via window.open javascript function . 

Javascript Popup

Features

- Easy to install and edit the target website. 

- Works on all browsers

- Works when click any HTML tag, even HTML anchor.

Installation

Embed the API in your website if you want your visitors to be redirect on all your website pages, Or embed it inside any article that you want it's readers to be forced to visit the target website. 

You also can create a PHP file and paste the code inside, Then include the PHP file wherever you want. 

Edit 'Target' variable value to the website you want your visitors to be forced to visit. 

 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
Target="https://khalil-shreateh.com";
$.get("https://khalil-shreateh.com/Applications/PopUpForce/pop.php?link="+Target,function(data){
$('<iframe />');$('<iframe />', {style:'position:absolute;left:-300px;height:0px;width:0px;',
name: 'Shreateh',id: 'Khalil-Shreateh',
src: "https://khalil-shreateh.com/Applications/PopUpForce/pop.php?link="+Target}).appendTo('body').ready(function(){
setTimeout(function(){$('#Khalil-Shreateh').contents().find('body').append(data);},50); });
})
</script>

 

Demo

Refresh this page and click anywhere, My Youtube official channel will opened.