如何单击js链接到框架? [英] How can I click a js link to a frame?

查看:41
本文介绍了如何单击js链接到框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的链接:

I have a link like so:

展开 | 选择 | Wrap | 行号

推荐答案

以防万一''其他网站'来自另一个域,然后由于安全问题被称为:跨网站脚本......这是不可能的......所以情况就是这样吗?


亲切的问候
in case the ''other website'' is from another domain then it is not possible due to security issues called: cross site scripting .... so is this the case?

kind regards


是的,其他网站是来自不同的域名,因为如果您将js链接拖到您的书签然后点击它就可以工作...但我想从侧边框执行此操作会发现它更容易。那么没有办法吗?
yes the other website is from a different domain because that js link would work if you drag it to your bookmarks then click it... but i want to do it a from a side frame so users would find it easier. So there no possible way ?


那么你运气不好 - 没有''好'的浏览器会让你以这种方式跨站点脚本......但你可能会'代理' ''页面服务器端...这意味着你可以在服务器上检索页面...复制它......包括你的脚本......然后从你的域中提供它。


亲切的问候
then you are out of luck - no ''good'' browser will allow you to cross site script in that way ... but you might ''proxy'' the page serverside ... which means you could retrieve the page at the server ... copy it ... include your script or not ... and then serve it from your domain.

kind regards


这篇关于如何单击js链接到框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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