false popup not allowed?

J

Jean Pierre Daviau

I have disable my firewall, virus software, google pop up allowed, ie6 popp
up checker disabled.
Is there an other one?

This script tels me :
"Pop-up windows are blocked. Please disable your popup blocker in order to
use the site.".



function POPRESULT(POP,NIS){
if (POP&&!NIS) {
xPopTested = true;
ShowMessage();//alert("All pop-up windows are supported.");
} else if (NIS) {
alert("Norton Internet Security has been detected. This may be disable
some pop-up windows. Please disable this feature for this site.");
} else {
alert("Pop-up windows are blocked. Please disable your popup blocker in
order to use the site.");
}
}
function POPTEST(){
try{
if(!xPopTested)
{
window.focus();
xWin=window.open("popuptest.htm","xWin","top=5000,left=5000,width=100,height=100");
setTimeout("test_xWin()",700);
}
else ShowMessage();
}catch(e){}
}
function test_xWin(){
is_ie=false;
is_mac=false;
PWOBJ=typeof(window.open);
if (document.body&&typeof(document.body.innerHTML)!="undefined"){
PAGE=document.body.innerHTML.toLowerCase();
}
// DETECT NORTON INTERNET SECURITY
if
((window.SymWinOpen)||(window.SymRealWinOpen)||(PAGE.indexOf("symrealwinopen")!=-1)||((PWOBJ.indexOf("function")!=-1)&&(!is_mac&&is_ie)))
is_nis=true;
// DETECT POP-UP KILLERS
else if ((xWin==null)||(typeof(xWin)=="undefined")||(!POPWRITE))
xWindow=false;
// POP-UP SUCCESSFUL
else xWin.close();
POPRESULT(xWindow,is_nis);
}
var xPopTested=false;
var xWin=null;
var xWindow=true;
var x=null;
var PWOBJ=null;
var is_ie=false;
var is_mac=false;
var is_nis=false;
var PAGE="";
var POPWRITE=false;

Thanks for your attention
--
Jean Pierre Daviau
--
Easyphp1.8
Apache1.3.24
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
http://www.jeanpierredaviau.com
 
J

Jean Pierre Daviau

I corrected some problems on this script. It seems to work.
Advises please.


----------------------

<html>
<head>
<title>check pop up</title>

<SCRIPT type="text/javascript" language="JavaScript">
<!--
var xPopTested=false;
var xWin=null;
var xWindow=true;
var x=null;
var PWOBJ=null;
var is_ie=false;
var is_mac=false;
var is_nis=false;
var PAGE="";
var POPWRITE=false;

function ShowMessage(){
alert("All pop-up windows are supported.");
}
function POPRESULT(POP,NIS){
if (POP &&! NIS) {
xPopTested = true;
ShowMessage();
} else if (NIS) {
alert("Norton Internet Security has been detected. This may be disable
some pop-up windows. Please disable this feature for this site.");
} else {
alert("Pop-up windows are blocked. Please disable your popup blocker in
order to use the site.");
}
}
function POPTEST(){
try{
if(!xPopTested)
{
window.focus();
xWin=window.open("popuptest.htm","xWin","top=5000,left=5000,width=100,height=100");
setTimeout("test_xWin(xWin)",700);
}
else ShowMessage();
}catch(e){}
}
function test_xWin(xWinin){
is_ie=false;
is_mac=false;
PWOBJ=typeof(window.open);
alert(xWinin.document.body.innerHTML);
if (document.body && typeof(document.body.innerHTML)!="undefined"){
PAGE=document.body.innerHTML.toLowerCase();
}
// DETECT NORTON INTERNET SECURITY
if
((window.SymWinOpen)||(window.SymRealWinOpen)||(PAGE.indexOf("symrealwinopen")!=-1)||((PWOBJ.indexOf("function")!=-1)&&
(!is_mac&&is_ie))) {
is_nis=true;

// DETECT POP-UP KILLERS
}else{
if ((xWin==null)||(typeof(xWin)=="undefined")) {//||(!POPWRITE)
xWindow=false;
}
// POP-UP SUCCESSFUL
else{
xWin.close();
}
}

POPRESULT(xWindow,is_nis);
}
//-->
</SCRIPT>
</head>

<body onLoad="POPTEST()">

</BODY>
</HTML>
---------------------------------
 
R

Randy Webb

Jean Pierre Daviau said the following on 1/30/2006 5:34 PM:
I corrected some problems on this script. It seems to work.
Advises please.

<snip>

IE6 WinXP SP2 gives an error of permission denied.

Gives a false positive with the AOL Popup Blocker in AOL9.0 as well.
 
J

Jean Pierre Daviau

The goal of this script is to test if the pop ups are allowed. I tried it
with IE6, Opera and Mozilla everything OK. For the others I dont have them.
IE6 WinXP SP2 gives an error of permission denied.
??It does not gives this?
alert("Pop-up windows are blocked. Please disable your popup blocker in
order to use the site.");

Gives a false positive with the AOL Popup Blocker in AOL9.0 as well.
Is this another one?



I added a window.opener.POPWRITE = true; in popuptest.htm
if ((xWin==null)||(typeof(xWin)=="undefined")||(!POPWRITE)
) {
xWindow=false;
}

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top