douwei7471 2014-09-29 19:39
浏览 149
已采纳

将页面上发生的点击事件复制到另一页面

i have a page say www.example.com. it consists of some results(like Google results, these results are injected by me by requesting a third party resource into example.com). on clicking one of them it will redirect to some url(say www.trackclicks.com/some.php) which tracks the referrer(on which the click event happening) in this case it is www.example.com

My requirement is i have to show www.trackclicks.com/some.php that click event happened on my page say mysite.com but not on www.example.com even though it happens on it(i have to mask it).

i never came across of this type of requirement, so i haven't tried anything. i used .htaccess to redirect the pages but not sure i can use them for diverting click events.

MY thought to do this:

i will create a page say cach.php on mysite.com and redirect the www.trackclicks.com/some.php from my site's page and click the www.trackclicks.com/some.php using javascript.

so the actual reult url on example.com will be like this

www.mysite.com/catch.php?rd="www.trackclicks.com/some.php"

then using javascript i will click it from mysite/cach.php.

  • 写回答

1条回答 默认 最新

  • dongzhanjuan5141 2014-09-29 20:13
    关注

    I was writing an example code, but I found this tutorial that works great for you. You can mask your url changing window.status or handling location.href.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请问如何在openpcdet上对KITTI数据集的测试集进行结果评估?
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路
  • ¥15 phython读取excel表格报错 ^7个 SyntaxError: invalid syntax 语句报错