开发者

Anti-Frame Busting code? [duplicate]

开发者 https://www.devze.com 2023-01-17 16:34 出处:网络
This question already has answers here: 开发者_运维问答Closed 12 years ago. Possible Duplicate: My frame is redirecting page !! How to stop it ?
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

精彩评论

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

关注公众号