Hi guys , I was looking for frame breaker code or frame killer scripts , In which i can Kill all frames expect Stumble frame , Plz help me . I mean a frame killer code which kill all frames except Stumble frame
Something like this might work. Long time since i used the code, but should still work ( the exception not tested ). Problem is that you cant get the outter frame url i think, so maybe checking the referrer works, if they dont hide it or fake it <script type="text/javascript"> <!-- var ref = document.referrer; // If outer most window location is not your loaded location if (top.location != self.location) { // If there is a ref and match stumble if (ref && /stumbleupon/.test(ref)) { // Do nothing } else { top.location=self.location.href; } } //--> </script> Code (markup):