views:

87

answers:

1

Possible Duplicate:
My frame is redirecting page !! How to stop it ?

Is there any code like that ?

Please help..Thanks

A: 

If you mean a code that detects if it's in a frame, and if so, change the target location?

if (parent.frames.length > 0) parent.location.href = location.href;
Niv
No, he is looking for the oposite.
Oded
This is exactly the opposite of what's being asked.
NullUserException
**Anti** frame busting.
Gumbo
Yah i'm looking for an opposite one !!
5416339
Sorry, connected the Anti to the Frame part.
Niv