跟踪用户点击iframe中的哪个链接。? [英] Track user click on which link with in Iframe.?

查看:61
本文介绍了跟踪用户点击iframe中的哪个链接。?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,



i更新,我有一个任务,我在iframe中显示一个网站,



我的iframe:



i am fresher i got a task in which i have show a website with in a iframe,

my Iframe:

<iframe src=http://www.makemytrip.com width="900" height="900"> </iframe>





现在问题是我如何知道用户点击了哪个按钮或在哪个链接上,我希望信息存储d在一些文件上。只想要点击信息...





任何帮助都将不胜感激。



now the thing is how i got to know user clicked on which button or on which link, i want the information to be stored on some file. just want the click information...


any help would be appreciated.

推荐答案

我没有确切的想法,但我可以这样帮助你



I don't have exact idea but i can help you this way


document )。ready( function (){
(document).ready(function() {


a)。click( function (){
alert( this .id);
// 在这里,您将获得点击的链接
});
});
("a").click(function() { alert(this.id); // here you will get which link have been clicked }); });








这篇关于跟踪用户点击iframe中的哪个链接。?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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