如何更改在iframe中加载的网站内容? [英] How to change content of website loaded in iframe?
本文介绍了如何更改在iframe中加载的网站内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用从其他域的iframe加载的jQuery来更改网站内容,例如:
I need to change content of website using jQuery loaded in iframe from other domain such this:
<html>
<head>
</head>
<body>
<iframe src="site.com/somepage.html></iframe>
<script>
$('iframe').find('div#message').value('hello');
</script>
</body>
</html>
此外,我添加了目标链接到白名单
任何帮助?谢谢。
Also I added target link to whitelist. Could any helps? Thanks.
推荐答案
这篇关于如何更改在iframe中加载的网站内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文