473,513 Members | 3,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get around popup blockers?

So many websites can get around my Googlebar's popup blockers. Even Opera 8
can not stop those popups. I looked into the codes, and I can find nothing
showing me how it is done. Can anyone help me find what how it is done?

First go to
http://www.sitepoint.com/forums/show...5&page=1&pp=25

Click on
Last ? on the page

Then a pop up with URL
http://www.sitepoint.com/popup/popup...id=3&forumid=6
will be shown.

I looked at the page which does have
<script src="/popup/popupjs.php?zoneid=3&amp;forumid=6"
type="text/javascript"></script>
in <head></head>

How did they popup the window?
Jul 25 '05 #1
15 18697
co****@panix.com wrote:
So many websites can get around my Googlebar's popup blockers. Even Opera 8
can not stop those popups. I looked into the codes, and I can find nothing
showing me how it is done. Can anyone help me find what how it is done?

First go to
http://www.sitepoint.com/forums/show...5&page=1&pp=25

Click on
Last ? on the page

Then a pop up with URL
http://www.sitepoint.com/popup/popup...id=3&forumid=6
will be shown.

I looked at the page which does have
<script src="/popup/popupjs.php?zoneid=3&amp;forumid=6"
type="text/javascript"></script>
in <head></head>

How did they popup the window?


The rules differ, but in general the idea is that if an event is
user-initiated, it will be allowed to open a popup. Thus common popups
that occur when you first visit a page are blocked-- they are
logic-intitiated. But if you click a link or button, it is
user-initiated, and the popup will often be allowed. Sort of like
"implied consent".

Each popup blocker implements its own algorithm, of course, but that's
usually one of the fundamental rules.

Jul 25 '05 #2
> The rules differ, but in general the idea is that if an event is
user-initiated, it will be allowed to open a popup. Thus common popups
that occur when you first visit a page are blocked-- they are
logic-intitiated. But if you click a link or button, it is
user-initiated, and the popup will often be allowed. Sort of like
"implied consent".

Each popup blocker implements its own algorithm, of course, but that's
usually one of the fundamental rules.


OK, but still which line makes on the page make the thing popup?
Jul 25 '05 #3
PerlFAQ Server wrote:
The rules differ, but in general the idea is that if an event is
user-initiated, it will be allowed to open a popup. Thus common popups
that occur when you first visit a page are blocked-- they are
logic-intitiated. But if you click a link or button, it is
user-initiated, and the popup will often be allowed. Sort of like
"implied consent".

Each popup blocker implements its own algorithm, of course, but that's
usually one of the fundamental rules.


OK, but still which line makes on the page make the thing popup?


whichever one says window.open

I think you've missed the point.
The script isn't defeating the popup blocker.
The user is.

Jul 25 '05 #4
whichever one says window.open

I think you've missed the point.
The script isn't defeating the popup blocker.
The user is.


if you read the source of the file, you will understand, there is NO
window.open.
Jul 25 '05 #5
PerlFAQ Server wrote:
whichever one says window.open

I think you've missed the point.
The script isn't defeating the popup blocker.
The user is.


if you read the source of the file, you will understand, there is NO
window.open.


Line 16 of
http://www.sitepoint.com/popup/popup...&amp;forumid=6

reads:
popupnewwindow = window.open('/popup/popup.php', 'popme', 'width=560,
height=420, location=no, menubar=no, status=no, toolbar=no,
scrollbars=auto, resizable=yes, left=200, top=80');

The script tag with an src attribute is a way to include external
script source files in the current document, much as if they were in
the source of the current document.

Is this where your confusion was stemming from?

Jul 25 '05 #6
<co****@panix.com> wrote:
So many websites can get around my Googlebar's popup blockers. Even Opera 8
can not stop those popups. I looked into the codes, and I can find nothing
showing me how it is done. Can anyone help me find what how it is done?


AFAIK, the pop-up blockers don't block new windows opened by Flash or
Shockwave. That's how these nasty *&#$#( are getting around it.

--
Tim Slattery
Sl********@bls.gov
Jul 25 '05 #7
There's also the possibly of installed spy/adware. These things can
open windows and do all sorts of annoying stuff, and because they're
(covertly) installed apps, they can often circumvent IE / other browser
controls.

Take a look at adaware from lavasoft.

Jul 25 '05 #8
Tim Slattery wrote:
<co****@panix.com> wrote:
So many websites can get around my Googlebar's popup blockers. Even Opera 8
can not stop those popups. I looked into the codes, and I can find nothing
showing me how it is done. Can anyone help me find what how it is done?


AFAIK, the pop-up blockers don't block new windows opened by Flash or
Shockwave. That's how these nasty *&#$#( are getting around it.

--
Tim Slattery
Sl********@bls.gov

firefox's one can with a tweak in about:config...
Jul 25 '05 #9
Jedi Fans wrote:
Tim Slattery wrote:
<co****@panix.com> wrote:
So many websites can get around my Googlebar's popup blockers. Even
Opera 8
can not stop those popups. I looked into the codes, and I can find
nothing
showing me how it is done. Can anyone help me find what how it is done?


AFAIK, the pop-up blockers don't block new windows opened by Flash or
Shockwave. That's how these nasty *&#$#( are getting around it.

--
Tim Slattery
Sl********@bls.gov

firefox's one can with a tweak in about:config...

OT but tim please can you add a space to the two -- so it reads without
quotes "-- " instead of "--" as -- does not get recognised as a
signature whereas "-- " does, ty
Jul 25 '05 #10
Quoth Jedi Fans:
AFAIK, the pop-up blockers don't block new windows opened by Flash or
Shockwave. That's how these nasty *&#$#( are getting around it.


firefox's one can with a tweak in about:config...


Care to share?

--
\\kristian
Jul 25 '05 #11
Kristian Thy wrote:
Quoth Jedi Fans:
AFAIK, the pop-up blockers don't block new windows opened by Flash or
Shockwave. That's how these nasty *&#$#( are getting around it.


firefox's one can with a tweak in about:config...

Care to share?


It's called 'Flashblock', search for it in Firefox extensions under 'Web
annoyances'. There are lots of other handy doo-dads too...

--
Rob
Jul 26 '05 #12
////////////

Not working. I downloaded all the files to my server, and I can not repeat
it. Here is what I have

clickthis.htm:
<a href=index.htm>click here</>

index.htm:
<head>
<script src="popup.js" type="text/javascript"></script>
</head></head></html>

poped.htm:
new

popup.js:
popupnewwindow = window.open('poped.htm', 'popme', 'width=560, height=420,
location=no, menubar=no, status=no, toolbar=no, scrollbars=auto,
resizable=yes, left=200, top=80');
////////////////////////

Now open clickthis.htm and click the link. All googlebar, firefox and Opera
blocked this popup. How they did that I did not do to make they can get
around all popup blockers?
Jul 26 '05 #13
PerlFAQ Server wrote:
////////////

Not working. I downloaded all the files to my server, and I can not repeat
it. Here is what I have

clickthis.htm:
<a href=index.htm>click here</>

index.htm:
<head>
<script src="popup.js" type="text/javascript"></script>
</head></head></html>

poped.htm:
new

popup.js:
popupnewwindow = window.open('poped.htm', 'popme', 'width=560, height=420,
location=no, menubar=no, status=no, toolbar=no, scrollbars=auto,
resizable=yes, left=200, top=80');
////////////////////////

Now open clickthis.htm and click the link. All googlebar, firefox and Opera
blocked this popup. How they did that I did not do to make they can get
around all popup blockers?


The popup as you've coded it is not the result of a user-initiated
event. It's logic-initiated upon navigation to the page. You've made it
automatic, instead of requested by implication.
index.html --
<html><head>
<script src="popup.js" type="text/javascript"></script>
</head><body>
<a href="#top" onclick="return(popup())">popup</a>
</body></html>
poped.html --
moomin
popup.js --
function popup() {
popupnewwindow = window.open( 'poped.htm', 'popme',
'width=560, height=420, location=no, menubar=no,
status=no,' +
' toolbar=no, scrollbars=auto, resizable=yes, left=200,
top=80'
);
return false;
}
Here, the popup will occur as a result of the onclick event. Provided
you actually click (or focus and press return) on it, the onclick is
user-initiated and *most* popup blockers will allow the new window to
be opened.

Jul 26 '05 #14
> index.html --
<html><head>
<script src="popup.js" type="text/javascript"></script>
</head><body>
<a href="#top" onclick="return(popup())">popup</a>
</body></html>
poped.html --
moomin
popup.js --
function popup() {
popupnewwindow = window.open( 'poped.htm', 'popme',
'width=560, height=420, location=no, menubar=no,
status=no,' +
' toolbar=no, scrollbars=auto, resizable=yes, left=200,
top=80'
);
return false;
}
Here, the popup will occur as a result of the onclick event. Provided
you actually click (or focus and press return) on it, the onclick is
user-initiated and *most* popup blockers will allow the new window to
be opened.


I know the trick you wrote here. It is working. However I did not see any of
the onclick on sitepoint.com. I only see
onclick="window.open('member.php?u=38110') onclick="who(284138); return
false; etc. on the html page on
http://www.sitepoint.com/forums/show...5&page=1&pp=25
Could you find how they did it? I could not repeat it.
Jul 26 '05 #15
"PerlFAQ Server" <co****@panix.com> wrote in message
news:9b********************@rogers.com...
index.html --
<html><head>
<script src="popup.js" type="text/javascript"></script>
</head><body>
<a href="#top" onclick="return(popup())">popup</a>
</body></html>
poped.html --
moomin
popup.js --
function popup() {
popupnewwindow = window.open( 'poped.htm', 'popme',
'width=560, height=420, location=no, menubar=no,
status=no,' +
' toolbar=no, scrollbars=auto, resizable=yes, left=200,
top=80'
);
return false;
}
Here, the popup will occur as a result of the onclick event. Provided
you actually click (or focus and press return) on it, the onclick is
user-initiated and *most* popup blockers will allow the new window to
be opened.


I know the trick you wrote here. It is working. However I did not see
any of
the onclick on sitepoint.com. I only see
onclick="window.open('member.php?u=38110') onclick="who(284138);
return
false; etc. on the html page on
http://www.sitepoint.com/forums/show...5&page=1&pp=25
Could you find how they did it? I could not repeat it.


Some sites have begun to implement Flash and Java components that cause
popups to happen. Many popup blockers can not contend with popups opened
by Flash or Java. However, many can, and changes are being made to
others to make them capable of blocking popups opened by Flash or Java.

However, in this case, it seems they've decided that lots of people
click on the Web browser window to do things like scroll, so their
source code includes:

window.onclick = popupfunction;

They also tie the popup to every link on the page with:

popupconvertlinks = function()
{
anch = document.getElementsByTagName('a');
for (i = 0; i < anch.length; i++)
{
if (!anch[i].onclick) anch[i].onclick = popupfunction;
}
}

Any click on the window (or any link) will trigger their logic which
generates an intermitant popup. So the popups that you see not being
stopped by the popup blocker are, in fact, user-initiated. It's just
that most users don't expect clicking in whitespace on the page to be
"user-initiated" (or cause a popup).

This can be confirmed by typing
"javascript:void(alert(window.onclick));" into the Address Bar when
clicking anywhere in the window initiates a popup.

This is quite annoying and I'm surprised people who would stoop to this
haven't thrown a window.blur() in there as well, to force people to
click the window to give it focus.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 27 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1932
by: Dan | last post by:
First, I'm sorry if this question has been asked too many times. I'm new to this news group. The question has to do with the use of popup windows in a web page. I have heard that popup windows should be avoided; due to use of popup blockers and browser that do not process javascript. Is the use of popup windows bad design? Will it...
8
1948
by: Bijoy Naick | last post by:
It seems like the BBC sports site is able to get past popup blockers.. For eg.. http://news.bbc.co.uk/sport1/hi/cricket/default.stm. Click on the Video icon under "Watch and Listen" - right hand frame. I have a popup blocker installed but the window still pops up.. Any one know how this can be done? BTW: I need this functionality for an...
1
2256
by: QA | last post by:
Go to http://dictionary.reference.com/search?r=67&q=apple you see this <!-- FASTCLICK.COM POP-UNDER CODE v2.0 for dictionary.com (12 hour) --> <script language="javascript"><!-- var min_hour_frequency=12; var fastclick_site_id=4366; document.write('<scr'+'ipt language="javascript" '+ 'src="http://code.fastclick.net/pu.js"></scr'+'ipt>'); //...
26
6777
by: Raffi | last post by:
Hi, We have a database application that runs in a popup Internet Explorer application window. The reason for this is to isolate the casual user from the address bar and the typical IE navigation buttons. The application has a browser test page that displays an error message when a popup blocker is found and opens a popup page stating the...
13
6241
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related to opening up a popup window in an application I wrote. The error messages are quite diverse: "Object doesn't support this property or method" or...
9
3906
by: Rathtap | last post by:
I want to popup a window from my codebehind. The reason is that during the postback the code needs to do some validations and to build the arguments that are passed in the url. How can I achieve this functionality? The reason I do not want to use Response.Redirect is because when the user comes back to the first page, all the selections that...
1
1294
by: Leo Muller | last post by:
Hi, I found a nice way of working around popup blockers. A popup would be opened automatically, but if it isn't then something else on the page would happen, like displaying a manual link. function StartGame(){ var newwin = window.open (http://www.com,"GameWindow","") if(eval(newwin.opener==this)==true) {
4
4259
by: vickeybird | last post by:
I want to know if it is possible to detect if Pop up Blocker is enabled without trying to open a Pop Up windows. I'm trying to create a web analytics script and visible Pop up in case of disabled PopUp Blocker is not being accepted.
2
2537
by: jtaylor | last post by:
I am having a problem with the prompt message being blocked by popup blockers. (I think) I have the following javascript code on my page and some customers are having a problem with the prompt message. They get the confirm message and answer yes and then it immedietly puts up the message "Approval Process cancelled". Other customers are...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.