在iframe中处理跨域网站上的点击事件 [英] handle click event on cross domain site in iframe

查看:487
本文介绍了在iframe中处理跨域网站上的点击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我需要从iframe捕获文本框中的锚标记的href.如果iframe的src是相同的域,则很容易做到,但是如果更改了域,则它不起作用.我几乎尝试了所有方法来实现这一目标,但没有成功.如果有人执行此类任务,请提供帮助.

在此先感谢..........

hello

I need to capture href of anchor tag in the textbox from the iframe. it is easily done if the src of the iframe is same domain but if the domain is change its not working. I try almost all way to achieve this but not get success.Please help if anyone do this type of task.

Thanks in advance..........

推荐答案

大多数浏览器都具有阻止此类访问的安全设置.请提供特定的错误,可能有解决方法.
Most browsers have security settings that prevent that kind of access. Please provide a specific error and there may be a way around it.


这篇关于在iframe中处理跨域网站上的点击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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