473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to disable Javascript/DynHTML/popups inside the browser window?

During the last months I obeserved a growing number of web pages with popups
inside a web page. I don't know the technique by which these in-page-windows
are implemented (either Javascript or HTML?). They contain a "close" resp. "x"
button/link to click them away.

They are however not detectable by "normal" popup blockers.

How can I otherwise turn these popup windows automatically (!) off otherwise?

Marcus

Jul 23 '05 #1
3 6721
On Mon, 17 Jan 2005 18:55:27 +0100, ot***@gmx.net (Marcus Otmarsen)
wrote:
During the last months I obeserved a growing number of web pages with popups
inside a web page. I don't know the technique by which these in-page-windows
are implemented (either Javascript or HTML?). They contain a "close" resp. "x"
button/link to click them away.

They are however not detectable by "normal" popup blockers.

How can I otherwise turn these popup windows automatically (!) off otherwise?


With great difficulty, it's the main reason I was so disappointed with
the rise of popup-blockers, disabling pop-ups is easy, disabling these
awful things can only really be achieved by disabling javascript or
CSS. Anything else involves loads more work.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #2
Hi,
[...] popups inside a web page. I don't know the technique by which
these in-page-windows are implemented (either Javascript or HTML?).
They contain a "close" resp. "x" button/link to click them away. I guess they are absolute position divs. Per JS they are set to
display:none if you click the "x".
They are however not detectable by "normal" popup blockers.
How can I otherwise turn these popup windows automatically (!) off
otherwise?

If it's like that you can't block them, because it's impossible to see
which div is an ad and which isn't.

Chris
Jul 23 '05 #3
"Marcus Otmarsen" <ot***@gmx.net> wrote in message
news:cs*************@news.t-online.com...
During the last months I obeserved a growing number of web pages with
popups
inside a web page. I don't know the technique by which these
in-page-windows
are implemented (either Javascript or HTML?). They contain a "close"
resp. "x"
button/link to click them away.
Without a link to an example site, it's impossible to say. Most likely
the "popup" is a <div> positioned above any existing text on the page.
They are however not detectable by "normal" popup blockers.
It's unlikely they will ever be. It's fairly easy to detect the opening
of a new window, it's less likely anything could detect the creation or
manipulation of a <div> on a Web page. For example:

<script type="text/javascript">
var s =
document.createElement('d!@#$%^&*()i!@#$%^&*()v'.s plit(/!@#$%^&*\(\)/).join(''));
with (s.style)
{
position = 'absolute';
top = left = '10px';
width = height = '100%';
backgroundColor = 'Black';
}
eval('\u0076\u0061\u0072\u0020\u0061\u006c\u0065\u 0072\u0074\u0020\u003d\u0020\u0066\u0075\u006e\u00 63\u0074\u0069\u006f\u006e\u0028\u0078\u0029\u0020 \u007b\u0020\u0072\u0065\u0074\u0075\u0072\u006e\u 0020\u0064\u006f\u0063\u0075\u006d\u0065\u006e\u00 74\u002e\u0062\u006f\u0064\u0079\u002e\u0061\u0070 \u0070\u0065\u006e\u0064\u0043\u0068\u0069\u006c\u 0064\u0028\u0078\u0029\u003b\u0020\u007d\u003b');
alert(s);
</script>

In a language where even built-in functionality an be overwritten to do
something completely different, it's almost impossible to intercept and
act on every possible combination of script actions. I suppose one could
argue that a the browser could intercept any attempt to createElement()
and stop it, or when JavaScript attempts to change the -visibility-
or -display- style of any HTML element stop that, or when you try to
reposition a visible <div> that is currently off-screen on the viewport,
stop that. But if you do all that, well, you might as well not include
any of that functionality in the first place, because some of it is very
useful.

When the browser detects window.open() (or an alias of window.open())
being called without user interaction, only one thing is happening, a
new window is being opened. That action can be subverted. The malicious
creating, changing the visibility of, or re-positioning of elements is
much harder to subvert without possibly destroying all functionality on
the Web page that you enabled script to give you in the first place.
How can I otherwise turn these popup windows automatically (!) off
otherwise?


Disable JavaScript.

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

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

Similar topics

3
by: Maria Bitsku | last post by:
How do I deactivate a window using Javascript. For example if I have a window that opens up another window, how do I prevent the user from clicking (doing anything) in the original window until...
52
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional...
0
by: Marcus Otmarsen | last post by:
During the last months I obeserved a growing number of web pages with popups inside a web page. I don't know the technique by which these in-page-windows are implemented (either Javascript or...
4
by: Els | last post by:
Hi, I would like an opinion on the following: I have a page which is made up of background-images with transparent linked images in front of it, which on hover show text in CSS popups. Due to...
3
by: annon | last post by:
I've noticed that some problems come up frequently that are of importance in writing web pages, because they're pretty fundamental points. For general reference, here are some collected...
6
by: szabelin | last post by:
Hello, I am trying to call a function inside the javascript block from asp.net during the postback (NOT button's OnClick event handler though). The javascript function creates new popup window. I...
8
by: Terry | last post by:
I am loading a javascript function from my asp.net app. This function loads a string passed to it in a new window. I register the function to activate on click of an asp linkbutton. Now when...
16
by: Eric | last post by:
I have a user of a web application written in Java/JSP that is unable to login to the site simply because certain links on the page do not run when they are clicked. Other popups using Javascript...
2
by: spiralof5 | last post by:
Hi. I must first say I'm not an experienced scripter. Here's my problem and how far I am so far. I struggled for awhile to get the browser to fill most of it with my flash movie and keep it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.