471,350 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

preventing popups

Is the a way of preventing popups from other sites while your page is
loading?

--
Regards
Nik
http://www.itconsultancy.org
Jul 23 '05 #1
3 1543
"PSERVE" <ne**@pserve.co.uk> wrote in message news:41**********************@news.dial.pipex.com. ..
Is the a way of preventing popups from other sites while your page is
loading?

--
Regards
Nik
http://www.itconsultancy.org


Well in Windows if you know where the popups are going to load from you can put the address in your hosts file. Look in the hosts file for examples.

Or you can turn off javascripting. That also will stop them.

Fact is most popups from offsite are advertisements and the addresses are not many. After a few popups you'll get most of them for the hosts file.

--
George Hester
__________________________________
Jul 23 '05 #2
You can't do it in JavaScript. It's not yours! You download it from website and it will run anyway (if you use it).
Use http://www.mozilla.org/products/firefox/
Alex Kizub.

George Hester wrote:
"PSERVE" <ne**@pserve.co.uk> wrote in message news:41**********************@news.dial.pipex.com. ..
Is the a way of preventing popups from other sites while your page is
loading?

--
Regards
Nik
http://www.itconsultancy.org

Well in Windows if you know where the popups are going to load from you can put the address in your hosts file. Look in the hosts file for examples.

Or you can turn off javascripting. That also will stop them.

Fact is most popups from offsite are advertisements and the addresses are not many. After a few popups you'll get most of them for the hosts file.

--
George Hester
__________________________________


Jul 23 '05 #3
PSERVE wrote:
Is the a way of preventing popups from other sites while your page is
loading?


Well... you say "your page" implying it is a page you authored? If that
is the case, then the way to prevent popups is to not write the code to
open them in the first place.

If you mean you are using a free Web hosting provider and they inject
code to create popups, then no, you should not attempt to circumvent that
behaviour or you will be in violation of the TOS you agreed to when you
signed up. If you want Web hosting without popups, pay for it.

If you mean you are loading an arbitrary page and it is opening windows
during the loading process, there are a variety of solutions. If you are
using Internet Explorer, Windows XP Service Pack 2 (<url:
http://windowsupdate.microsoft.com />) and the Google toolbar (<url:
http://toolbar.google.com />) offer good popup blockers. AOL Instant
Messenger (AIM) now also comes with a popup blocker, I don't know how
well it works. As well, there are a variety of other "Internet Security"
software packages that offer paranoia generation (oops, I mean
"firewall") and popup blocking services. And as others have mentioned,
you could use a browser with popup prevention built in (Firefox <url:
http://www.mozilla.org/firefox /> or Opera <url: http://www.opera.com
/>).

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

52 posts views Thread by Harlan Messinger | last post: by
7 posts views Thread by Bob Wightman | last post: by
2 posts views Thread by Tom Szabo | last post: by
4 posts views Thread by ciprian.dosoftei | last post: by
4 posts views Thread by dd | last post: by
1 post views Thread by YotamElal | last post: by

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.