Open new Tab in Background - All Browser Compatible
$10-30 USD
Paiement à la livraison
I currently have a popup working that opens a new site onclick - i need this to open a new tab instead of popup and to be opened in the background with focus on the current tab
I have tried various code to get this to work so far and here is what i have:
var popunder=new Array()
popunder[0]=(jQuery(this).attr('hreflang'));
var width = '500';
var height = '500';
var p = 'scrollbars=no,resizable=yes,toolbar=no,' + //these are obvious variables. set "yes" or "no".
'menubar=yes,status=yes,location=no,left=85,top=20,height=' + //the location on the user's screen
height + ',width=' + width;
var one_time=0
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if ([login to view URL] > 0) {
offset = [login to view URL](search)
if (offset != -1) { // if the cookie exists
offset += [login to view URL]
end = [login to view URL](";", offset); // set the index of beginning value
if (end == -1) // set the index of the end of cookie value
end = [login to view URL];
returnvalue=unescape([login to view URL](offset, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie('popunder')==''){
load_pop_power()
document.cookie="popunder=yes"
}
}
function load_pop_power(){
win2=[login to view URL](popunder[[login to view URL]([login to view URL]()*([login to view URL]))],"bw",p)
[login to view URL]()
[login to view URL]()
}
if (one_time==0)
load_pop_power()
else
loadornot()
however this is currently not working as the popup still appears in focus on the current window.
Please note - i don't want any open/close scripts...
Nº du projet : #5765370
À propos du projet
Décerné à:
Hi Sir! Expert in PHP, SQL, HTML4-HTML5/CSS2-CSS3 works, Can provide you pixel perfect, w3c validated, css based layout, cross browser compatible, neat and clean css, seo optimized and well commented codes. Plz discuss Plus