开发者

Cross domain restriction and limitations from an iframe

开发者 https://www.devze.com 2023-03-20 20:31 出处:网络
Another site uses my iframe domain XYZ.COM. I want to get all html elements of that site (XYZ.COM) and work on it with javascript, just like I do with my own domain page, while using my iframe.

Another site uses my iframe domain XYZ.COM. I want to get all html elements of that site (XYZ.COM) and work on it with javascript, just like I do with my own domain page, while using my iframe.

suppose wants to get images of XYZ.COM from iFrame

document.parent; // (its ask permission denied开发者_JS百科) 
document.referrer; // working for me but 
document.referrer.images; //Error: not an object

My debug tool is saying permission denied, because of cross domain restriction. Is there any solution for this, how can I do this?

0

精彩评论

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