markusallen,
I'm sorry, but there is no possible way for a Javascript on your page
to control popups on another page. I really don't think you could do
this with a frame. Even if you did, it would not work well or as
webadept pointed out, it would upset the other site owner.
I suggest e-mailng the popup site's owner and telling him that you
visitors are complaining about his popup. Ask him to remove the popup
and politely threaten to remove his hyperlink if he does not :-)
Thanks for using Google Answers! There just isn't technically a way
to do what you're asking. If you think about it though, would you
want other site owners to be able to control your website?
xemion-ga
P.S. I subscribed to your marketing newsletter, awaiting my great
tips! |
Request for Answer Clarification by
markusallen-ga
on
25 May 2002 09:58 PDT
Impossible doesn't exist in my dictionary:>
My outgoing hyperlinked site owners would never complain about me
killling their popup because they'll do just fine with my traffic.
If they don't like it, they can asked to be removed from my site
(quite silly because lots of traffic with no popup/popunders is better
than 0 traffic with popups/popunders).
It's okay if the solution was worked 90% of the time.
Using frames would be okay... a small .cgi or line of JavaScript would
would be best
Having my Web visitors install software is NOT an option... way too
much of a hassle.
I'm looking to automate this... I'll be adding a ton of hyperlinks.
Any ideas?
Markus Allen
Publisher
$10,000 Marketing Tip of the Day
http://www.markusallen.org/cgi-bin/tips.subscribe.pl?PC=11808
P.S. Glad you subscribed... you're going to love Wednesday's FREE tip!
|
Clarification of Answer by
xemion-ga
on
25 May 2002 10:28 PDT
Ok...the problem is this...
His website is on his server.
Your website is on your server.
You can't control his server.
You can't stop his popups.
It's pretty much impossible, sorry. It might even be illegal.
Changing his content and all.
However, I will check more into the frames stuff. I'm curious to what
can be done. I will post my findings later today or tomorrow, but I
doubt I will be able to come up with a good solution. Thanks.
xemion-ga
|
Clarification of Answer by
xemion-ga
on
25 May 2002 11:49 PDT
Ok, I have done further research. I've concluded that this is just
plain impossible using Javascript. I'm sorry.
IF, you wanted to do this for one particular page, if MIGHT be
possible to cancel the popups that page popped up. That would depend
on how the page's webmaster popped the windows, etc.. What Javascript
he used and exactly how he did it. That MIGHT be possible.
However, on a broad scale like you're asking for, it's impossible
using Javascript.
Javascript opens a window like so:
window.open("popup.htm", "windowname", "width=300,height=300, etc.");
The "windowname" is a name that we use to "reference" the window with
using html. Like we can launch a new document into that window using:
<a href="popup2.htm" TARGET="windowname">click here</a>
But, we can't close the window using the window name.
We can also reference a window using the following Javascript code:
NewWindow = window.open("window.htm", "window", "");
NewWindow.close();
However, most of the time you don't create windows like that in your
code unless you intend to reference them.
My Idea #1:
Theoretically, we could create a CGI script that would go through the
website you're linking to and look for "newwindow = window.open" type
statements. We could then run a continuous loop through a page in a
frame that would check to see if "newwindow" was open and if it was,
it would close it. That we could possibly do. HOWEVER...doing that
would create huge problems.
First, when we say "newwindow.close()" and our script did not
originally open the window, the browser displays a little error saying
"this window is trying to close, will you let it?" (I'm paraphrasing).
It then has a "yes" and a "no" button.
This is what your visitors would see. They'd go to the page. A
window would popup. Then a box would popup asking them if they wanted
to close the window that just popped up. Sounds annoying, huh?
Are you following me so far? This is all sort of confusing.
Remember what I said before about using "newwindow = window.open()"?
Normally you only use that code when you want to "reference" the
window.
So imagine now that the window has popped, the box has come up and the
user decided to close the window. The Javascript on the original
website attempts to reference the window. The window no longer
exists. One of two things will happen depending on what the
Javascript is trying to do.
The window will either open again, the box will come up again and the
user will be extremely annoyed, again. Or, an error message will come
up because the window no longer exists and the user will be extremely
annoyed, again.
So that idea (using CGI to find all the window reference and a
javascript loop to close them all) is extremely bad.
Idea #2:
Please read mork-ga's comment below. This is my second idea. My
problems with this below are below...
If you take out all the "open" statements you will create errors in
Javascript. Errors are even more annoying than popups.
It's like the webmaster writes ten lines of code and you take out two
lines. His code will now not work properly and will cause errors.
You could take out all of the javascript on the page, but that's a bad
idea because Javascript is extremely useful and it could very possibly
ruin the look of the website or the navigation.
Many websites create cookies when you visit them. I don't want to go
into all the cookie technical details, but the cookies won't work
properly if you use this method. This is a very big issue/problem,
just trust me on this.
You will also confuse your users. Your link says
"www.websitewithpopups.com", but when they click on the link it
actually takes them to
"www.yoursite.com/takeoutpopups.cgi?url=www.websitewithpopups.com".
This is also very illegal. It's a copyright violation.
There are other problems with Idea #2, but those are the basics. In
theory, this sounds simple to do, but in reality it's very complicated
and does not work properly.
So, there really is no techincal way to keep those popups from popping
up. Not without creating gazillions of errors or violating copyright
law. I can assure you that most website owners would not be impressed
by you displaying copies of their website instead of linking to them.
I'm sorry. If you don't understand anything I've said, please ask for
clarification. I can understand how it would be very confusing since
you're not familiar with Javascript. Thanks.
xemion-ga
|
Clarification of Answer by
xemion-ga
on
25 May 2002 11:59 PDT
Ok, I've come up with a 3rd idea. I can tell you right now that I
won't recommend this idea or another idea that eliminates popups.
It's just a bad idea technically.
The other problem is that popups are useful. Some actually have a
purpose. Eliminating all popups creates big problems.
I will research idea #3 further and get back to you. I'm just
interested in making sure I've covered all the angles technically and
showing you that there is no real solution to your problem besides
e-mailing the webmaster. Thanks.
xemion-ga
|
Request for Answer Clarification by
markusallen-ga
on
25 May 2002 19:03 PDT
Wow... I've inspired quite a debate.
I'm surprised how tough this is because there are many software popup
killers available.
As a marketer, I know:
1) Most people barely know how to turn on their computer, installing
popup killer software is an issue for most (not techie types
ovbiously).
2) When I e-mail Web site owners I'm looking to link swap with,
they're
not happy about creating a seperate page... it's a hassle.
3) I've been experimenting with a combination popunder plus popup to
get
my visitors subscribing to my marketing newsletter. Check out these
amazing results:
Popup: 0.41%
Popunder: 14.74%
It's not surprising Web surfers hate popups. But the
results show they don't mind popunders. For every 7 new
subscribers I gain, 1 came from my popunder. Just
imagine... without the popunder, those extra subscribers
would not have subscribed (but rather fled to another
Web site).
Since most Web site marketers don't test popunders vs. popups,
I'm concerned my visitors will think I'm exit popping them when
it's really the referred URL who is entry popping them... a
strategy that simply doesn't look good for me (or work
for the referred Web site owner).
I've seen sites that use a .cgi file to eliminate popups.
And like I said above, there are many software packages
that do the same.
Am I missing something here?
Warmly,
Markus Allen
Publisher
$10,000 Marketing Tip of the Day
http://www.markusallen.org/cgi-bin/tips.subscribe.pl?12345&PC=11808
|
Clarification of Answer by
xemion-ga
on
25 May 2002 20:43 PDT
Markus,
I will try and reply to all of the posted comments. I'm spending far
more time on this than is worth $10, but oh well :-)
Just fyi, popunder and popups are technically the same thing, just
with a little additional code added for the popunder. Technically
it's done the same way.
In Reply To Your Clarification: Popup-killer softwares work because
they are on the client ("visitors") computer. You can't technically
do this because your website is not on their computer. Your website
was the previous website they visited. It's not longer there. That
make sense?
Comment Reply #1: Originally posted by damnshit-ga :-) (interesting
name) Removing all popups is a TERRIBLE solution. Popups have very
useful purposes. Just they are misused the majority of the time. For
example of how surfing without popups or removing popups from websites
would be bad, visit: http://www.newsboys.com
Comment Reply #2: Originally posted by larre-ga and djscram-ga. They
are both correct. The offending webmaster would definitely be upset
and probably block access to your servers after he found out. And
this would definitely be against the law and you could be sued in a
civil court easily (and you would definitely lose).
Comment Reply #3: Originally posted by br-ga. He is also correct.
He's basically refering to my Idea #1 (see my answer above). However,
most popups are not popped up using a name like he said. While his
suggestion technically possible, it would not work for the majority of
cases. I would say that probably less than 10% of all popups popped
are named. I'm just making that number up, but it's probably less
than that.
Additional Comment: Most commerical/advertising popups are popped up
using an "external" javascript. This is javascript that's not stored
directly in the website. This means you really don't have access to
it at all. It's easy to get the external javascript code, but it's
not worth technically describing it to you.
My advice, is simply to e-mail the offending webmaster. It is not
technically possible to get rid of the popups on his site without
doing one or more of the following:
1: Making the website owner angry.
2: Making the visitor angry.
3: Or getting sued.
Idea #3 did not work out. Sorry. Thanks and let me know if there's
anything else I can help you with on this matter!
xemion-ga
|