how to force all new links opening or redirects to stay inside the iframe?
when loading http://www.dmoz.org/ via iframe.
when you click on any of the li开发者_如何学运维nks, it will escape out of the iframe.
how to disable this from happening ?
You can't, not really. You can load their website in your frame because you control the link your visitor uses to enter that site from your page. You do not control the dmoz site though and you have no control over how they set up their links. If they have them set up in such a way that it breaks any frames, then your outta luck.
精彩评论