开发者

how to prevent when a website is blocking its usage within an iframe tag

In my website, I preview any link with a tooltip, but when its facebook or meneame.net, for example; they block it and open t开发者_JS百科heir webiste in you website's current window.

Exanple <iframe src="http://meneame.net/bababa"></iframe>

How can i prevent that? i mean, maybe open it in a '_blank' page instead would be perfect for me. is it possible?

PD: the option of trying to detect which URL is about to be opened its not valid for me as long I don't know all the websites that do so.


This problem is due to the "same origin policy". It was design specifically to prevent wrapping pages from hijacking iframe content. It's a security feature. If we could circumvent this all browsers will then be insecure.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜