Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Is it possible to block popups?

Reply
Thread Tools

Is it possible to block popups?

 
 
Daniel Pope
Guest
Posts: n/a
 
      05-17-2004
Dear All,

Though I'm not new in HTML, I have to solve a problem that appears to be
unexpectedly difficult at this point.
I'm writting a banner exchange program but I cannot cope with the following
problem:
If the banners have incorporated popups (popunder), is it possible to
disable them before they start on the user's remote computer (in the client
browser)?
If yes, what html or javascirpt statement can be used?
Any hints will be greatly appreciated.


Daniel P.


 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      05-17-2004
"Daniel Pope" <daniel-> wrote:

> Though I'm not new in HTML, I have to solve a problem that appears to
> be unexpectedly difficult at this point.


You seem to have a limited understanding of what HTML is and what it is
not. It is a poor lonesome data format, not a programming language.

> I'm writting a banner exchange program


There's probably no catastrophic shortage of such programs in the
universe. Are you sure you can't find anything productive to do?

> If the banners have incorporated popups (popunder), is it possible to
> disable them before they start on the user's remote computer (in the
> client browser)?


Surely. This is one of the first things you should learn when starting to
use a browser.

> If yes, what html or javascirpt statement can be used?


Automatic popups have probably been created using some flavor of
JavaScript. There's nothing you can do in HTML about them except remove
the constructs that invoke the JavaScript code. In JavaScript, you can
remove that code itself.

> Any hints will be greatly appreciated.


Disable JavaScript in your browser, and start thinking that this is what
sensible users normally do, and (obHTML write your HTML accordingly.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
 
 
 
Mitja
Guest
Posts: n/a
 
      05-17-2004
Daniel Pope <daniel->
(news:Ot_pc.507045$Ig.107036@pd7tw2no) wrote:
> Dear All,
>
> Though I'm not new in HTML, I have to solve a problem that appears to
> be unexpectedly difficult at this point.
> I'm writting a banner exchange program but I cannot cope with the
> following problem:
> If the banners have incorporated popups (popunder), is it possible to
> disable them before they start on the user's remote computer (in the
> client browser)?


No. You can, of course, prevent them to incorporate such popups at all, by
only accepting "harmless" banner file formats (i.e. plain pictures).

> If yes, what html or javascirpt statement can be used?
> Any hints will be greatly appreciated.
>
>
> Daniel P.



 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      05-17-2004
Jukka K. Korpela wrote:

> "Daniel Pope" <daniel-> wrote:


>> Though I'm not new in HTML, I have to solve a problem that appears to
>> be unexpectedly difficult at this point.


> You seem to have a limited understanding of what HTML is and what it is
> not. It is a poor lonesome data format, not a programming language.


>> I'm writting a banner exchange program


> There's probably no catastrophic shortage of such programs in the
> universe. Are you sure you can't find anything productive to do?


>> If the banners have incorporated popups (popunder), is it possible to
>> disable them before they start on the user's remote computer (in the
>> client browser)?


> Surely. This is one of the first things you should learn when starting to
> use a browser.


>> If yes, what html or javascirpt statement can be used?


> Automatic popups have probably been created using some flavor of
> JavaScript. There's nothing you can do in HTML about them except remove
> the constructs that invoke the JavaScript code. In JavaScript, you can
> remove that code itself.


>> Any hints will be greatly appreciated.


> Disable JavaScript in your browser, and start thinking that this is what
> sensible users normally do, and (obHTML write your HTML accordingly.


The question does not involve the user's browser.
He is asking what can be done to keep 3rd party banners from creating popups
on the site.


 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      05-17-2004
Daniel Pope wrote:

> Dear All,


> Though I'm not new in HTML, I have to solve a problem that appears to be
> unexpectedly difficult at this point.
> I'm writting a banner exchange program but I cannot cope with the
> following problem:
> If the banners have incorporated popups (popunder), is it possible to
> disable them before they start on the user's remote computer (in the
> client browser)?
> If yes, what html or javascirpt statement can be used?
> Any hints will be greatly appreciated.



> Daniel P.



I'm no expert, but popups are generally created with code within the site's
page.
You may be able to write some script that will deny a banner if there is
anything more than the image itself.
As javascript is client side and can be turned off, you may want to look at
php or cgi.


 
Reply With Quote
 
Wÿrm
Guest
Posts: n/a
 
      05-17-2004
<snip>
> The question does not involve the user's browser.
> He is asking what can be done to keep 3rd party banners from creating

popups
> on the site.


ofcoz it CAN involve user browser! If you dumb-o think you can kill
javascript etc with php or cgi etc you better just go have change your
brains in a way, because as long as browser client enable javascript junk
you are stuck with it. To block javascript is 1 way, to use popup blockers
are another way, or use proxy 3rd way etc... So dont bother answer when you
have no clue about things. Stick on things you know (what are very limited
what it shows to me.)


 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      05-17-2004
Wÿrm wrote:

> ofcoz it CAN involve user browser! If you dumb-o think you can kill
> javascript etc with php or cgi etc you better just go have change your
> brains in a way,


I'd easy to disable scripts in PHP or CGI:

#!/usr/bin/perl
$htmlfragment = `cat somefile.html`;
$htmlfragment =~ s/\-\-/==/ig;
$htmlfragment =~ s/\<script /\<\!\-\- /ig;
$htmlfragment =~ s/\<\/script\>/ \-\-\>/ig;
print $htmlfragment;

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
Wÿrm
Guest
Posts: n/a
 
      05-17-2004
<snip>
> I'd easy to disable scripts in PHP or CGI:
>
> #!/usr/bin/perl
> $htmlfragment = `cat somefile.html`;
> $htmlfragment =~ s/\-\-/==/ig;
> $htmlfragment =~ s/\<script /\<\!\-\- /ig;
> $htmlfragment =~ s/\<\/script\>/ \-\-\>/ig;
> print $htmlfragment;


oops, my bad I think I was bit too tired when I was thinking here
earlier.


 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      05-18-2004
Kevin Scholl <> wrote:

> Jukka K. Korpela wrote:
>> "Daniel Pope" <daniel-> wrote:
>>
>>
>>>Though I'm not new in HTML, I have to solve a problem that appears
>>>to be unexpectedly difficult at this point.

>>
>>
>> You seem to have a limited understanding of what HTML is and what it
>> is not. It is a poor lonesome data format, not a programming
>> language.


I only quoted the first few lines, i.e. the most important lines, of your
message, and I must say that I cannot disagree with them. I almost feel
compelled to say: Me too!

(Please do not stop upside down fullquoting before you have a
contribution of your own to make.)

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
Kevin Scholl
Guest
Posts: n/a
 
      05-18-2004
Jukka K. Korpela wrote:
> "Daniel Pope" <daniel-> wrote:
>
>
>>Though I'm not new in HTML, I have to solve a problem that appears to
>>be unexpectedly difficult at this point.

>
>
> You seem to have a limited understanding of what HTML is and what it is
> not. It is a poor lonesome data format, not a programming language.
>
>
>>I'm writting a banner exchange program

>
>
> There's probably no catastrophic shortage of such programs in the
> universe. Are you sure you can't find anything productive to do?
>
>
>>If the banners have incorporated popups (popunder), is it possible to
>>disable them before they start on the user's remote computer (in the
>>client browser)?

>
>
> Surely. This is one of the first things you should learn when starting to
> use a browser.
>
>
>>If yes, what html or javascirpt statement can be used?

>
>
> Automatic popups have probably been created using some flavor of
> JavaScript. There's nothing you can do in HTML about them except remove
> the constructs that invoke the JavaScript code. In JavaScript, you can
> remove that code itself.
>
>
>>Any hints will be greatly appreciated.

>
>
> Disable JavaScript in your browser, and start thinking that this is what
> sensible users normally do, and (obHTML write your HTML accordingly.


How is disabling Javascript sensible? Javascript in and of itself is
generally harmless, and in this day and age an important part of many
useful sites. Disabling is certainly not the "norm", and by and large
unnecessary. Most browsers now include effective pop-up blockers, and
for the one important browser which doesn't (IE), there are numerous
third-party add-ons available.

--

*** Remove the DELETE from my address to reply ***

================================================== ====
Kevin Scholl http://www.ksscholl.com/

------------------------------------------------------
Information Architecture, Web Design and Development
------------------------------------------------------
We are the music makers, and we are the dreamers of
the dreams...
================================================== ====
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fo:Block can you check to see if a block contains any text by using the block id? morrell XML 1 10-10-2006 07:18 PM
Problem with enterprise application block - data block Showjumper ASP .Net 1 03-19-2005 03:48 PM
Block DIV within a block DIV? Noozer HTML 3 01-06-2005 10:24 PM
XML schema validation of one xml block based on values from another xml block Andy XML 0 11-18-2004 11:04 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57