/    Sign up×
Community /Pin to ProfileBookmark

Any way of stopping framebreaker or popups…

I run a traffic exchange and load sites in a frame. I would like to know if there is any script that blocks popups or a page that breaks out of the frame. I know there must be some script that does the opposite-opens all links in a frame in a new window-because I have seen these.
I really would like the popup blocker however. My users have agreements against popups, but many change the code and they are hard to catch and stop.
Thanks!

to post a comment
JavaScript

24 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Apr 04.2005 — If the page is not on your domain than you have no control over it.
Copy linkTweet thisAlerts:
@phpnoviceApr 04.2005 — No, there is no script to block the use of either [b]window.open()[/b] or [b]top.location.href[/b] -- when such usage is in a different domain than the page that wishes to block such usage. You have not seen any script that does anything to a page that is not in the same domain as the executing script.

The only thing you can do is force such users to upload their pages to your site so that your code can remove such usage as it is uploaded. I know... not very practical. However, that *is* the only option.

Cross-domain scripting is restricted as a security issue.
Copy linkTweet thisAlerts:
@stc60authorApr 04.2005 — Maybe it is some sort of other programming. For example, if you search for images on Yahoo, click on an image in the results, it takes you to the source page that is inside a Yahoo frame. If you click on any image on the page loaded in the bottom frame, it always opens the image in a new window. If you were viewing the image source page on your own, this would not happen (unless it was put in to do so). So, Yahoo has done something to make the links open in new windows.

But, here is something else.

I have seen alerts boxes popup when surfing away from certain sites. The boxes alert you that you are leaving the frame and ask if you wish to continue. Is there an easy script for that?
Copy linkTweet thisAlerts:
@stc60authorApr 04.2005 — I just check yahoo again. They seem to force every link to open in a new window.

I looked at the source and frame tag says:

<frame security="restricted"

Would this cause all links to open in new windows?
Copy linkTweet thisAlerts:
@phpnoviceApr 04.2005 — I have seen alerts boxes popup when surfing away from certain sites. The boxes alert you that you are leaving the frame and ask if you wish to continue. Is there an easy script for that?[/QUOTE]
The depends on whether such surfing away from the site was done by clicking on a link in the site's document itself (which is easily scripted for at the time the document was designed) -- or whether such surfing away was done via a change in the address bar or clicking on a previously saved favorite. In the last case, I believe this can only be accomplished by an IE-only option using the [b]onbeforeunload[/b] event. At least, the last I knew, other browsers had not implemented this.
Copy linkTweet thisAlerts:
@phpnoviceApr 04.2005 — I looked at the source and frame tag says:

<frame security="restricted"

Would this cause all links to open in new windows?[/QUOTE]

You're absolutely correct.

http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/security.asp
Copy linkTweet thisAlerts:
@stc60authorApr 04.2005 — If a tag can force links to open in new windows, is there a tag that forces links to open in the same window?

That's my last question.
Copy linkTweet thisAlerts:
@Willy_DuittApr 04.2005 — If I go thru the trouble of placing a [i]break out of frames[/i] script to prevent people such as yourself from trapping [b]MY[/b] pages in your frame, what business do you have trying to circumvent my wishes??

Forget it!! It can't be done, nor should it be allowed...

This is exactly why people use break out of frames scripts...

.....Willy
Copy linkTweet thisAlerts:
@phpnoviceApr 04.2005 — Not in a cross-domain situation, no. Sorry.
Copy linkTweet thisAlerts:
@phpnoviceApr 04.2005 — If I go thru the trouble of placing a [i]break out of frames[/i] script to prevent people such as yourself from trapping [b]MY[/b] pages in your frame, what business do you have trying to circumvent my wishes??[/QUOTE]
A little nicer, please. You missed his claim of being a service provider:
My users have agreements against popups, but many change the code and they are hard to catch and stop.[/QUOTE]
Copy linkTweet thisAlerts:
@Willy_DuittApr 04.2005 — A little nicer, please. You missed his claim of being a service provider:[/QUOTE]

Firstly, it is not your place to admonish myself nor request anything from me... Secondly, this is the internet, and once you have enough experience responding to questions in various forums, you too will learn that things are not always as they seem nor what people represent... In this case, I will believe that [i]service provider[/i] statement when I see a link to such, till then, this is just another webmaster that is attempting to do something that is not only frowned upon, but is against all that responsible developers believe in... I have followed this from the beginning but the more it carried on, the more obvious it is to me that the O/P is not revealing everything... Prove me wrong by providing a link to this service...

.....Willy
Copy linkTweet thisAlerts:
@Willy_DuittApr 04.2005 — Originally Posted by stc60

My users have agreements against popups, but many change the code and they are hard to catch and stop.[/quote]


Additionally, if this is true... What needs to be addressed is to catch thse people... NOT, trying to trap pages into frames and opening links in your frame... The latter is not possible at all and therefore, this statement alone makes me believe it is all smoke and mirrors... Again, prove me wrong by providing a link to this service...

.....Willy

[b]Edit:[/b] Added appropriate quote to show intent to open links from a trapped paged into the frameset ([i]which btw is impossible without a break out of frames script[/i])...

If a tag can force links to open in new windows, is there a tag that forces links to open in the same window?

That's my last question.[/QUOTE]
Copy linkTweet thisAlerts:
@phpnoviceApr 04.2005 — Firstly, it is not your place to admonish myself nor request anything from me... [/QUOTE]
Hey, jerk, what ever happened to "innocent until proven guilty"? :rolleyes:

It is the place of every free citizen to admonish those who deserve to be admonished --

and you definitely deserve that and then some. Nobody said you weren't free to not listen.

Go join a communist country. :p
Copy linkTweet thisAlerts:
@felgallApr 04.2005 — A service provider can always set up a file upload process server side that strips out prohibited code or adds code that will perform the required blocks. Then all they need to do is set things up so that their users must upload via that facility and don't have access to upload any other way. The free hosting providers use this setup to add their ad boxes into free hosting pages.
Copy linkTweet thisAlerts:
@phpnoviceApr 04.2005 — A service provider can always set up a file upload process server side that strips out prohibited code or adds code that will perform the required blocks.[/QUOTE]
Yep, that is what I said earlier:
The only thing you can do is force such users to upload their pages to your site so that your code can remove such usage as it is uploaded. I know... not very practical. However, that *is* the only option.[/QUOTE]
Copy linkTweet thisAlerts:
@Willy_DuittApr 05.2005 — Hey, jerk, what ever happened to "innocent until proven guilty"? :rolleyes:

It is the place of every free citizen to admonish those who deserve to be admonished --

and you definitely deserve that and then some. Nobody said you weren't free to not listen.

Go join a communist country. :p[/QUOTE]


[b]Hey jerk[/b]??

Look it here... You are the biggest horses a$$ that this forum has had the misfortune of posting in... In the last week, you have made approximately 700 ignorant posts... 99% which are NOT noteworthy... The remaining 1%, perhaps .001% of those which have been noteworthy... You're a dumba$$, moreso if you think your dumba$$ opinion means squat to me or anyone else with half a brain!!

Step off you little punk...

You ain't even got the wherewithall to talk to me...

.....Willy

[b]Edit:[/b] Speaking of which.... I'm still waiting for a link!!

What do YOU think the chances of the O/P returning and providing such?????????
Copy linkTweet thisAlerts:
@phpnoviceApr 05.2005 — You ain't even got the wherewithall to talk to me...[/QUOTE]
I'm talking to you now, a$$hole. You're full of more $hit than the Christmas Goose.
Copy linkTweet thisAlerts:
@Willy_DuittApr 05.2005 — I'm talking to you now, a$$hole. You're full of more $hit than the Christmas Goose.[/QUOTE]

Goooood....

I welcome the challenge....

Are you going to cry when I smack you around???
Copy linkTweet thisAlerts:
@Willy_DuittApr 05.2005 — I'm talking to you now, a$$hole. You're full of more $hit than the Christmas Goose.[/QUOTE]


Goooood....

I welcome the challenge....

Are you going to cry when I smack you around???
[/quote]


C'mom sissy!!

I've been waiting for your reply...

Why did you log out?? Sissy??

Arghhhhhhhhh... I got your goose... sissy!!

Give me a holler when you grow a few...

.....Willy
Copy linkTweet thisAlerts:
@Willy_DuittApr 05.2005 — Hey, jerk, what ever happened to "innocent until proven guilty"? :rolleyes:

It is the place of every free citizen to admonish those who deserve to be admonished --

and you definitely deserve that and then some. Nobody said you weren't free to not listen.

Go join a communist country. :p[/QUOTE]


I'm talking to you now, a$$hole. You're full of more $hit than the Christmas Goose.[/QUOTE]


Goooood....

I welcome the challenge....

Are you going to cry when I smack you around???
[/quote]



C'mom sissy!!

I've been waiting for your reply...

Why did you log out?? Sissy??

Arghhhhhhhhh... I got your goose... sissy!!

Give me a holler when you grow a few...
[/quote]


Did I mention ([i]or should I repeat: mension[/i]) sissy!!

......([i]the evil[/i]) Willy
Copy linkTweet thisAlerts:
@phpnoviceApr 05.2005 — What a baby you are. :rolleyes:
Copy linkTweet thisAlerts:
@Willy_DuittApr 05.2005 — What a baby you are. :rolleyes:[/QUOTE]

That's the best you got??

Gheesh... I'm truly disappointed...

As much of a loud mouth, all knowing, opinionated POS that you have recently proved yourself to be...

I certainly expected much more than [i]you're a baby[/i]...

Ouch, quit it... that hurt... :rolleyes:

.....Willy
Copy linkTweet thisAlerts:
@phpnoviceApr 05.2005 — Merely by way of explanation (and this is the last I need to say on the subject)... You acted the jerk, so I gave you recognition of that fact. Then you went ballistic, so I responded in kind -- but mildly (by comparison). After that, you demonstrated just how immature you are and it no longer made sense to trade inane insults with someone obviously so far beneath me.

Cheers.
Copy linkTweet thisAlerts:
@Willy_DuittApr 05.2005 — Merely by way of explanation (and this is the last I need to say on the subject)... You acted the jerk, so I gave you recognition of that fact. Then you went ballistic, so I responded in kind -- but mildly (by comparison). After that, you demonstrated just how immature you are and it no longer made sense to trade inane insults with someone obviously so far beneath me.

Cheers.[/QUOTE]


That's better...

How long did it take you to come up with that...

Oh... that's right... 2 hours... Awwww... you're slow...

But we knew that from reading your dumba$$ posts for the last week or so... Heh, at least you were able to but together a string of words formed into a sentence that was somewhat coherent... Did your mommy write that for you?? Curious minds want to know...

WAR: [i]phpnovice's[/i] mommy ghost writes for him!!
×

Success!

Help @stc60 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...