Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Learn More

Not able to access window.clipboard in unsecured websites.

  • 3 отговора
  • 1 има този проблем
  • 10 изгледи
  • Последен отговор от cor-el

more options

Hello,

can you please suggest me how to enable window.clipboard in unsecured web pages, currently i have a project where i need to copy selected text and paste it in somewhere. So am using document.execCommand("copy"); but am not able to find window.clipboard in developer tool. So not able to copy the things to clipboard. Or suggest how can I enable it using javascript.

Hello, can you please suggest me how to enable window.clipboard in unsecured web pages, currently i have a project where i need to copy selected text and paste it in somewhere. So am using document.execCommand("copy"); but am not able to find window.clipboard in developer tool. So not able to copy the things to clipboard. Or suggest how can I enable it using javascript.

Всички отговори (3)

more options

I don't think Firefox can start the computer's clipboard. Best to start it before starting the browser.

more options

I don't think the Developer Tools panel has a section for the clipboard. What we can say is to check MDN:

https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard

Also, if relevant: Where to go for developer support

more options