pop-up blocker detector
Moderators: Moderatori ajutatori, Moderatori
-
- Membru, skill +1
- Posts: 283
- Joined: 23 Sep 2014, 17:18
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Been thanked: 3 times
- Contact:
<!DOCTYPE html>
<html>
<head>
<title>Detect Popup Blocker using Javascript</title>
<script>
function checkPopup() {
var openWin = window.open("http://www.google.com","directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no");
if (!openWin) {
alert("A popup blocker was detected. Please Remove popupblocker for this site");
} else {
openWin.close();
}
}
window.onload = checkPopup;
</script>
</head>
<body></body>
</html>
Stie cineva sa modifice scriptul asta in asa fel incat mesajul alert("A popup blocker was detected. Please Remove popupblocker for this site"); sa se repete la infinit pana dezactiveaza pop-up blocker si nu mai apare mesajul?
<html>
<head>
<title>Detect Popup Blocker using Javascript</title>
<script>
function checkPopup() {
var openWin = window.open("http://www.google.com","directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no");
if (!openWin) {
alert("A popup blocker was detected. Please Remove popupblocker for this site");
} else {
openWin.close();
}
}
window.onload = checkPopup;
</script>
</head>
<body></body>
</html>
Stie cineva sa modifice scriptul asta in asa fel incat mesajul alert("A popup blocker was detected. Please Remove popupblocker for this site"); sa se repete la infinit pana dezactiveaza pop-up blocker si nu mai apare mesajul?
- xdalynn
- Membru, skill +1
- Posts: 405
- Joined: 30 Nov 2013, 17:41
- Detinator Steam: Nu
- CS Status: Programare pe paine.
- Contact:
folosesti un loopHacked2 wrote:<!DOCTYPE html>
<html>
<head>
<title>Detect Popup Blocker using Javascript</title>
<script>
function checkPopup() {
var openWin = window.open("http://www.google.com","directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no");
if (!openWin) {
alert("A popup blocker was detected. Please Remove popupblocker for this site");
} else {
openWin.close();
}
}
window.onload = checkPopup;
</script>
</head>
<body></body>
</html>
Stie cineva sa modifice scriptul asta in asa fel incat mesajul alert("A popup blocker was detected. Please Remove popupblocker for this site"); sa se repete la infinit pana dezactiveaza pop-up blocker si nu mai apare mesajul?
Counter Strike 1.6 - Unelte pentru server http://www.extreamcs.com/forum/producti ... 99580.html
- Programare Web si Software | Afiseaza codul
- Servicii servere jocuri | Afiseaza codul
- Contact | Afiseaza codul
-
- Fost administrator
- Posts: 13712
- Joined: 09 Oct 2010, 12:39
- Detinator Steam: Da
- CS Status: In grajd!
- SteamID: kalulord
- Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra - Location: Romania, Ploiesti
- Has thanked: 328 times
- Been thanked: 646 times
- Contact:
Nu l-am testat.
Code: Select all
function LoadPopup(){
//basic vars
var HTTPurl = "http://www.google.com","directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no";
var LoadScreen = window.open(HTTPurl);
//condition
if(!LoadScreen){
//999 loop
for (var i = 0; i < 999; i++) {
alert("A popup blocker has been detected! Please remove PopupBlocker Application to continue further.");
//console log to check the loaded url
console.log(HTTPurl[i]);
};
} else {
LoadScreen.close();
}
}
window.onload = LoadPopup;
- xdalynn
- Membru, skill +1
- Posts: 405
- Joined: 30 Nov 2013, 17:41
- Detinator Steam: Nu
- CS Status: Programare pe paine.
- Contact:
Hacked2 wrote:Nu merge , nu apare deloc.
Code: Select all
<script>
function checkPopup() {
var openWin = window.open("http://www.google.com","directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no");
if (!openWin) {
alert("A popup blocker was detected. Please Remove popupblocker for this site");
loopalert();
} else {
openWin.close();
}
}
function loopalert() {
checkPopup();
}
</script>
ar trebui sa mearga
Counter Strike 1.6 - Unelte pentru server http://www.extreamcs.com/forum/producti ... 99580.html
- Programare Web si Software | Afiseaza codul
- Servicii servere jocuri | Afiseaza codul
- Contact | Afiseaza codul
-
- Fost administrator
- Posts: 13712
- Joined: 09 Oct 2010, 12:39
- Detinator Steam: Da
- CS Status: In grajd!
- SteamID: kalulord
- Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra - Location: Romania, Ploiesti
- Has thanked: 328 times
- Been thanked: 646 times
- Contact:
Testat si functioneaza, probabil ai dezactivat js.
Primul Popup
https://gyazo.com/f40afafb641288ad0102374578213759
Al doilea popup
https://gyazo.com/821497f40a75d8e1f27389eefffa0ffd
Primul Popup
https://gyazo.com/f40afafb641288ad0102374578213759
Al doilea popup
https://gyazo.com/821497f40a75d8e1f27389eefffa0ffd
Code: Select all
<!DOCTYPE html>
<head>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
function LoadPopup(){
//basic vars
var HTTPurl = "http://www.google.com";
var Specs = "directories=no,height=100,width=100,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no";
var LoadScreen = window.open(HTTPurl, Specs);
var PopupNumber = "Popup with number:";
//condition
if(!LoadScreen){
//999 loop
for (var i = 0; i < 999; i++) {
alert("A popup blocker has been detected! Please remove PopupBlocker Application to continue further. \n" + PopupNumber + " " + i);
//console log to check the loaded url
console.log(HTTPurl[i]);
};
} else {
LoadScreen.close();
}
}
window.onload = LoadPopup;
});
</script>
</head>
-
- Fost administrator
- Posts: 13712
- Joined: 09 Oct 2010, 12:39
- Detinator Steam: Da
- CS Status: In grajd!
- SteamID: kalulord
- Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra - Location: Romania, Ploiesti
- Has thanked: 328 times
- Been thanked: 646 times
- Contact:
Vrei sa ii deschida odata sau de cate ori acceseaza pagina? Daca vrei de cate ori acceseaza pagina schimbaHacked2 wrote:Multumesc mult , functioneaza.
Exista cumva si o metoda sa il oblige sa opreasca pop-up blocker-ul ?
Code: Select all
LoadScreen.close();
Code: Select all
LoadScreen.open();