/    Sign up×
Community /Pin to ProfileBookmark

frame buster?

Hi I am new here. I know some HTML but no Java. I want to learn though as most everything is Java these days. Anyway, my problem is this… I have a site that I made years ago which consists of frames for easy navigating around one of my favorite sites (which is not my own site.) My frame has many links on it and lately I have tried the links pointing to that specific domain and they all break out of my frame. I viewed their source code and was able to find the following….

<script>
(function(window) {
if (window.location !== window.top.location) {
window.top.location = window.location;
}
})(this);
</script>

Is there a way to get around this? I do not want to clickjack or anything stupid like that, I just want to be able to get around the site easily. If not I suppose I would have to target all the links to open in a new window which I don’t really want to do. Any help would be appreciated! Thanks!!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@PadonakJan 23.2014 — Java nagila,

Java nagila,

Java nagila,

Ve' nismecha...
Copy linkTweet thisAlerts:
@rootJan 24.2014 — Java is not JavaScript, they are two different languages altogether.

That is JavaScript and this is the right place to be, as for frames, frames are not supported in HTML5 which is what most browsers now support.

You should not be trying to keep a site in your frameset if it does not want to be in another frameset.
×

Success!

Help @LMN 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.18,
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,
)...