473,396 Members | 1,780 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,396 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 6727
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.