Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

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


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

Additional System Details

This happened

Not sure how often

Installed Plug-ins

  • getplusplusadobe16263
  • Adobe Acrobat Plug-In Version 7.00 for Netscape
  • Office Plugin for Netscape Navigator
  • Citrix ICA Client Plugin (Win32)
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • Default Plug-in
  • Shockwave Flash 10.2 d161
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • Java Plug-in 1.6.0_13 for Netscape Navigator (DLL Helper)
  • Java(TM) Platform SE binary
  • Npdsplay dll
  • DRM Store Netscape Plugin
  • DRM Netscape Network Object


  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20101026 Firefox/3.6.12

More Information

  • Top 10 Contributor
  • Moderator
3195 solutions 24387 answers

Right-click the image and select Copy Image.

Question owner

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.