搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

I want to copy an image to the clipboard in firefox using firefox clipboard API

more options

I Want to copy an image to the clipboard using firefox clipboard API. Please let me know he steps

I Want to copy an image to the clipboard using firefox clipboard API. Please let me know he steps

所有回覆 (2)

more options

Right-click the image and select Copy Image.

more options

Thanks for the reply, but I want to copy the IMAGE to the clipboard programmatically in javascript using firefox clipboard API.

For ex using the following syntax: var clip = Components.classes'@mozilla.org/widget/clipboard;1']

I am able to copy the text, but I don't know the syntax to copy the IMAGE.