Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Javascript Jumps out of Frames

Name: Anonymous 2006-08-07 18:09

I'm attempting to load a page in a frameset, but it has

<script language='JavaScript'>
<!--
if (parent.frames.length > 0) 
    parent.location.href = location.href;
-->
</script>

and pops out of the frames each time.

I want to only block those lines of javascript on the site, and I only need to from this one browser. I tried looking for a greasemonkey script to base my script off of, but I've discovered that I don't know jack shit about javascript. It's all greek to me.

Any javascript people care to reveal the secret to me?

Name: Anonymous 2006-08-09 20:26

now you have to worry about link targets, it's impossible to give other people the url of any page except for finding out the url of the inner frame and just linking [snip]
So if I were to make some secure site that shouldn't be linked from outside anyway (say, a shopping cart), or make a webgame with an interface that doesn't completely suck (people sure are going to want to link to that expired game view of yours), this is stupid?

You realise that iframes give the audience a more responsive interface, instead of waiting for a page reload? Not everyone is on a ZOMG FAST OC3? It's simpler than implementing AJAX for anything that doesn't need that sort of power (and how are you going to link an AJAX state, hmm?)?

I realise the koolaid-swilling pedants want the rest of us to do things the One True Way, but I'll err on the side pragmatism. While the linking is a valid issue, that's like saying a hammer sucks because you can't remove screws with it. Bollocks on that.

Anyone else want to give a stab at it?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List