Jump to content


Photo

Verificando Se Tem Anti Pop-up


  • Faça o login para participar
18 replies to this topic

#1 redstyle

redstyle

    Expert

  • Usuários
  • 540 posts
  • Sexo:Masculino

Posted 30/09/2005, 23:41

Pessoal, fiz algums teste aqui e funcionou.

Como verificar se o visitante tem anti-popup

O script é muito simples e a lógica é a seguinte.

Na página que irá abrir o popup de teste tem uma função que é chamada quando o documento da popup carregar nela.

Veja os arquivos

Página que abre o pop up de testes
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
//função que é chamada pela pop up
function popupCheck(){
                //usa-se innerHTML pra escrever um novo testo na div info
	document.getElementById('info').innerHTML = "<h1>NÃO TEM ANTI POPUP</h1>";
}
//abre a pop up de teste
window.open('popup.php','popup','width=10, height=10');
</script>
</head>

<body>
<div id="info"><h1>TEM ANTI POPUP</h1></div>
</body>
</html>

Arquivo que abre na popup
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<script type="text/javascript">
//chama a função que está no document que abriu a pop up
window.opener.popupCheck();
//fecha pop up de teste
window.close();
</script>
</body>
</html>

Bem simples.

Pode haver outras maneiras de se verificar isso e esse script pode ser melhorado, mas a idéia é essa.

PS : existem bloqueadores de pop ups que desabilitam a função window.open do javascript.

Dúvidas e sugestões são bem vindas.

[]'s

Edição feita por: redstyle, 30/09/2005, 23:43.

Conheça meu blog para Aprender Laravel (Framework PHP)


#2 Paulo Freitas

Paulo Freitas

    ××××××× LRU #456504 ××××××× ××××××× LRM #364686 ×××××××

  • Ex-Admins
  • 5612 posts
  • Sexo:Masculino
  • Localidade:Campinas - SP

Posted 01/10/2005, 00:14

Hmmm ... conheço um outro método que julgo eu ser mais funcional, eis ele:
<script type="text/javascript">
var pop = window.open("about:blank","_blank","width=10,height=100,top=0,left=0");
if (null == pop || true == pop.closed)
{
  h = 1;
  document.write("ATENÇÃO! Eliminador de popups!");
} else {
  h = 0;
  pop.close();
}
</script>
Espero que tenha ajudado em algo ... :rolleyes:

[]’s :DAté mais

#3 redstyle

redstyle

    Expert

  • Usuários
  • 540 posts
  • Sexo:Masculino

Posted 01/10/2005, 00:24

Pois o meu no chinelo hauahuha.

Só uma questão. Essa parte foi invertida por algum motivo especial?
if (null == pop || true == pop.closed)

Conheça meu blog para Aprender Laravel (Framework PHP)


#4 Paulo Freitas

Paulo Freitas

    ××××××× LRU #456504 ××××××× ××××××× LRM #364686 ×××××××

  • Ex-Admins
  • 5612 posts
  • Sexo:Masculino
  • Localidade:Campinas - SP

Posted 01/10/2005, 00:40

Só uma questão. Essa parte foi invertida por algum motivo especial?

if (null == pop || true == pop.closed)

Bom, se foi o que eu entendi (:P rs), creio que não. Poderia ser invertida (o true == pop.closed primeiro), daria na mesma. ;)

[]’s :DAté mais

#5 redstyle

redstyle

    Expert

  • Usuários
  • 540 posts
  • Sexo:Masculino

Posted 01/10/2005, 09:15

Tipo você colocou

null == pop e
true == pop.closed

sei que quando você vai verificar igualdade não importa o lado que os elementos estão.

no caso do null == pop poderia ficar pop == null.

É que é mais comum você ver códigos por ai com pop == null.

Conheça meu blog para Aprender Laravel (Framework PHP)


#6 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 19/09/2017, 05:45

Xenical Orlistat 60mg cialis online Liquid Clomid For Sale
Buy Plavix Brand Equine Reaction To Amoxicillin
Order Viagra <a href=http://cialtobuy.com>buy cialis</a> Direct No Rx Doryx Online Cash Delivery
Express Ship Non Prescription Viagara cheap cialis Buy Xenical Online Canada
Nausea With Cephalexin Cialis 10mg Wirkung
High On Amoxicillin <a href=http://cialtobuy.com>cialis</a> Order Generic On Line Dutasteride Free Shipping Website
Cialis Achat Espagne cialis Amoxicillin Clavulanate Potassium Tablet Nausia
Levaquin Purchasing Price With Next Day Delivery
Precio Viagra Autentica <a href=http://cialtobuy.com>cialis online</a> Amoxicillin And Probiotics
Elocon Eczema Drugs Free Consultation cialis buy online Cialis 10 Et 20
isotretinoin direct
Levitra Taglich <a href=http://cialtobuy.com>viagra cialis</a> Acheter Propecia Moins Cher

#7 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 27/09/2017, 21:59

1063 Staxyn Amoxil Suspension Acheter Viagra Generique France buy cialis Canadian Pharmacy India Zithromax Affect Birth Control Pills
Was Ist Viagra Generikum Amoxicillin Arm Pain cialis Viagra Naturale Anguria Viagra Nebenwirkungen Sodbrennen
Cialis Dependance Lutein cialis Levitra Gesund

#8 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 02/10/2017, 07:48

Zentel Find cheap cialis Direct Amoxicilina Get In Internet Without Perscription
Informacion Sobre El Viagra Viagra Sale In Canada generic cialis Viagra Tabletten Nebenwirkungen
Sertralina Medicamento Order Proscar For Hair Loss buy viagra online Cialis Brescia

#9 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 07/10/2017, 17:42

Priligy At Cvs Purchase Zithromax No Prescription viagra Amoxicillin Storage
Vardenafil 20 Ml Herbal Propecia Clinically Proven Propecia Antes Del Embarazo viagra Propecia Free Trial Lieu SСÐвÐÑРÐлr D'Acheter Priligy
Cialis Und Ruckenschmerzen Kamagra En Ligne Montpellier online pharmacy Phneumonia Amoxicillin Levitra Testberichte Cheap Lasix Order

#10 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 07/10/2017, 19:41

Priligy Se Vende En Peru Comprar Cialis Generico Tadalafil Medication From Canada how to get a free trial of levitra Sachet Kamagra Usa
Farmacia Kamagra Francia Cialis Tadalafil 10mg Vaginal Infections And Amoxicillin levitra coupon free trial Viagra In Canada Without Prescription Viagra Apotheke Hamburg
Discount Levaquin Express Delivery Medication Amex cialis Cheap Generic Doxycycline

#11 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 23/10/2017, 04:30

Kamagra Women Ou Acheter Viagra France Achat De Viagra Viagra Pills For Cheap viagra online pharmacy Amoxicillin Uses Diarrhea Levitra Conseil Priligy Usa Blog
Kidney Infection Can Amoxicillin Cause Cialis Experiencia Zithromax No Prescription Overnight Shipping viagra prescription Tomar Viagra Sildenafil Cialis 8 20 Mg
Valor Cialis Nebenwirkungen Viagra Sehstorungen Amoxicillin Abuse viagra Keflex Hose
Femara Online Orders Cheapest Prices Preis Cialis 20mg 12 Cialis Quand Le Prendre best price for levitra 20mg Propecia Benavides Cialis Receta Europa

#12 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 26/10/2017, 16:44

Order Orlistat Antibiotics Without Prescription Canada Stendra 50mg With Doctor Consult Minneapolis viagra Propecia For Sale
Zentel Medicine Visa With Free Shipping Buy Silagra Pills viagra online pharmacy Need Fedex Acticin Internet Medicine Prednisone Sale

#13 iapedlok

iapedlok

    Expert

  • Usuários
  • 538 posts
  • Sexo:Feminino
  • Localidade:Balaclava

Posted 27/10/2017, 13:44

Discounts! best industrial design products progect11.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE +как написать рецензию +на книгу образецfree vip cs 1.6 zombieZoom 3d printed t-shirts men raglan long sleeve compression shirt flash cosplay costume crossfit fitness clothing tops male ( 11.76 $)6 color sexy 2017 zanzea women strapless polka dot casual loose long maxi summer dress cotton ( 16.69 $)Classica Collection - Black Calfskin Coat Card Holder Wallet ( 157.00 $)Maria Callas Printed B.Y.O.T. NS Tote ( 108.00 $)4 Bundles Brazilian Virgin Hair Body Wave Rosa Hair Products Brazilian Body Wave Hair Queen Mink Brazilian Body Wave Virgin Hair ( 73.36 $)Stylish zipper and cross straps design women's sandals ( 33.28 $)5.8g 32 channels 400mw hd 1080p fpv wireless transmitter dvr camera ( 125.98 $)Original Converse classic all star canvas shoes men and women sneakers low classic Skateboarding Shoes 4 color ( 66.50 $)Bamoer 6 colors luxury 18k rose gold plated chain bracelet for women ladies shining aaa cubic zircon crystal jewelry jib013 ( 7.63 $)2016 big screen 9 inch color lcd monitor video door phone intercom system night vision 1 camera 1 monitor doorbell camera ( 130.19 $)телемагазин шоп энд шоу распродажа платьяTu Hi Hai — Dear Zindagi / Full Song Video / Alia / Shah Rukh / AliMid Urban Black Leather Mens Sneaker ( 198.00 $) 4.jpg
Discounts! makeup and beauty products

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
8a peruvian virgin hair body wave peruvian body wave 4 bundles,virgin peruvian hair bundles unprocessed #1b human hair body wave ( 72.00 $)
Fenasy selling natural pearl jewelry set for women fashion 925 sterling silver pendant & earrings , pearl jewelry , 2016 new ( 25.80 $)
Online pharmacy Strawson pharmacy with home delivery in Moscow and Russia
замена цепи грм 405
New flower stamping nail art hollow templates airbrush stencils stickers reusable stamp plates template guide diy ( 0.69 $)
3D Smart Interactive Pocket Racing Car-19.22 $
тим фортресс 2 скачать торрент
JXD 509G 5.8G 2.0MP Camera RC Quadcopter-90.51 $
Ryukzaki, pomponi i prosto naglost: chto razdrazhaet passazhirov metro?
Julieta small millerighe fabric and eco leather top zip tote bag ( 138.01 $) Gherardini
Hot!brand new folding flip remote car key 3 button 433mhz for ford focus mondeo fiesta with 4d-63 chip ( 21.68 $)
Feathers Pure Jacquard Silk Narrow Tie ( 68.60 $)
Chic spaghetti strap hollow out floral print skinny women's dress ( 21.53 $)
шоп 24 интернет магазин официальный сайт обувь
2pcs Car Rearview Mirrors Universal Blind Spot Rear View Mirror, Rimless Rearview Mirror Covers Wide Angle Round Convex mirror ( 5.00 $)


338.jpg
Discounts! best single product websites

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
2 pcs lot 14 smd led arrow panel for car rear view mirror indicator turn signal ( 0.99 $)
Alluring women's halter tropical print bikini set ( 11.30 $)
Stylish women's jewel neck short sleeve geometrical printed jumpsuit ( 17.61 $)
Beyo Hair 4 Bundles Malaysian Virgin Hair Natural Wave 7A Virgin Hair Bundle Deals Malaysian Curly Weave Human Hair Extensions ( 50.00 $)
премиум battlefield
Cashmere and Wool Fringed Stole ( 42.00 $)
Venera (film)
wii world
Pair of dolce rhinestone embellished geometric shape women's earrings ( 6.27 $)
Original Xiaomi Hybrid Dual Drivers Earphones Mi IV In-Ear Headphones Pro-19.53 $
DuMedia
5.0 inch DOOGEE X5 Pro Android 5.1 4G Smartphone MTK6735 64bit Quad Core 16GB ROM OTG OTA Bluetooth 4.0 96.59$
2pcs 1156 5050 13SMD Car LED Brake Light ( $2.15 )
установка грм двигатель змз 406
3d rose gun and skull print round neck short sleeve slimming men's t-shirt ( 12.52 $)


8.jpg
Discounts! acne product reviews

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
809 Durable 5mW 532nm 16340 Zoomable Green Laser Pointer Pen for Burning Matches ( $7.88 )
Indian virgin hair body wave 4 pcs indian body wave bundles 8a unprocessed indian hair cheap virgin human hair weave bundles ( 35.00 $)
IJOY Limitless Dual Post RDTA Atomizer-35.00 $
4pairslot outdoor sports high quality men's socks thermal hike camping warm winter cotton sports socks mens socks 39-44 ( 12.69 $)
Aluminum Alloy Camera Clip Buckle 20KG Loading Capacity-21.98 $
ремонт гбц +в минске
KMASHI Pando K6 QC 2.0 Smart US Plug Power Adapter Wall Charger with Micro USB Charge Cable for iPhone 6S 6 Plus Samsung Note 5 S6 Edge Plus etc. 13.99$
Ocher handmade italian leather wingtip ankle boots ( 168.50 $) Pakerson
Mens Brown Croco Stamped Patent Leather Belt ( 64.40 $)
5 Kinds of Categories Purple Blueberry Seed Windowsill Roof Fruit Seed Potted Bonsai Tree Plant Vaccinium Seed a Pack 200 Pcs ( 1.08 $)
Desiree black patent leather and suede pump ( 548.32 $) Balmain
Cubot Max 4G Phablet-162.47 $
L9110S 2 Channe Dual DC Motor Driver Arduino Controller Board ( $2.66 )
Cubot CHEETAH 2 4G Phablet-171.69 $
Portable Whale Style Ultrasonic Humidifier-6.82 $


81.jpg
Discounts! good skin care products progect11.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Moschino Signature Print Navy Blue Twill Silk Narrow Tie ( 54.60 $)Ali moda hair 3 bundles hot 7a brazilian virgin hair ms lula hair brizilian body wave grace hair extensions cheap luvin bodywave ( 40.11 $)E-ace mini hidden wifi car dvr dashcam video recorder camcorder 170 degree wide angle full hd 1080p dual camera lens reistrator ( 45.37 $)Rarest Heirloom Super Giant Japan Red Strawberry Organic Seeds, Professional Pack, 100 Seeds Pack, Sweet Juicy Fruit E3063 ( 0.36 $)аккаунт бателфилд 4Best Quality Brazilian Virgin Hair Loose Wave 4 Bundles 8A Unprocessed Virgin Human Hair Loose Wave Brazilian Hair Weave Bundles ( 38.50 $)Paris medium saddle bag ( 262.12 $) Rebecca MinkoffWomen sports tights yoga pants women fitness slim sexy long yoga leggings elastic pants high waist ladies winter running pants ( 29.99 $)Indian human hair with closure body wave ear to ear lace frontal with 3 bundles lace front closure with bundles annabelle hair ( 154.00 $)Leather gloves motorbike motorcycle gloves winter waterproof windproof protective gear sports racing motocross moto gloves luvas ( 31.35 $)New 2016 women bag vintage canvas handbags messenger bags for women handbag shoulder bags high quality casual bolsa feminina ( 24.99 $)LED Car Door Welcome Light Laser Car Door Shadow led Projector For BMW F30 E60 E61 E63 E64 E65 E66 E67 F10 E90 X1 X3 X4 X5 X6 ( 12.50 $)H4 car led headlight high power auto h4 3 hi lo hb2 9003 high low 40w ( 49.99 $)Dropshipping hot wireless remote 7.0inch 2.4g baby monitor video babyphone home security camera system ( 142.50 $)New zoeva 15 pcs rose golden complete makeup brush set professional luxury set make up tools kit powder blending brushes ( 17.20 $) 60.jpg

#14 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 27/10/2017, 14:15

Precios Cialis Alicante Amoxicillin A Year After Expiration Date Buy Accutane V viagra prescription Viagra Sell In Canada Augmentin Vs Amoxicillin Inc
Antibiotic Cephalexin Drug Free Shipping Direct Levaquin Worldwide viagra Kamagra Online Kostenlos Amoxil Trimox
Vermox Purchase Antabuse Viagera cialis buy online Onlinee Pharmaciees
Green Kamagra Cytotec Prix Viagra Pfizer Wiki viagra Minoxidil Proscar Propecia Dutasteride How To Buy
Cialsis Lowest Price Cytotec Est Cigarette viagra online pharmacy Propecia Cuota De Mercado

#15 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 27/10/2017, 15:00

Wirkung Von Viagra Verstarken Buy Cialis 10mg Uk nonprescription levitra Persantine Achat Kamagra Metz




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq