以编程方式调用浏览器的右键单击菜单选项? [英] Programmatically Calling Browser Right-Click Menu Options?

查看:119
本文介绍了以编程方式调用浏览器的右键单击菜单选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够以编程方式调用右键菜单选项,这些选项是从诸如翻转之类的用户事件发起的,当然不是。

I would like to be able to programmatically invoke the right-click menu options, initiated from user events like rollover and whatnot of course. Is this possible?

具体来说,我希望能够将Safari称为将图像用作桌面图片或将图像添加到iPhoto库,或者Firefox使用纯Javascript设置为桌面背景,因此您无需右键单击。

Specifically, I would like to be able to call the Safari "Use Image as Desktop Picture" or the "Add Image to iPhoto Library", or the Firefox "Set as Desktop Background" using pure Javascript, so you don't have to right click. Is that possible?

推荐答案

您不能这样做,这是由于安全限制。

You can't and this is because of security limitations.

如果可以这样做,恶意网站可以访问您的浏览器并篡改您的系统。

If you could do that, malicious websites can access your browser and tamper with your system.

这篇关于以编程方式调用浏览器的右键单击菜单选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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