开发者

Anti-Frame Busting code? [duplicate]

This question already has answers here: 开发者_运维问答 Closed 12 years ago.

Possible Duplicate:

My frame is redirecting page !! How to stop it ?

Is there any code like that ?

Please help..Thanks


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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜