来自 javascript 的 iframe 内容 [英] iframe content from javascript

查看:28
本文介绍了来自 javascript 的 iframe 内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 javascript 或 jquery 中获取 iframe 内容,但主要问题是 iframe src 是其他域网站,我该怎么做?

i need to get iframe content in javascript or jquery, but main problem is that iframe src is other domain web site, how can i do it?

推荐答案

由于安全原因,如果 iframe 托管在另一个域中,您将无法访问它.忘掉它.

You can't access to the iframe if it hosted in another domain because of security. Just forget about it.

同样的问题

这篇关于来自 javascript 的 iframe 内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆