This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ค้นหาฝ่ายสนับสนุน

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

เรียนรู้เพิ่มเติม

Getting Text in clipboard to webpage using Clipboard API

  • 1 การตอบกลับ
  • 1 คนมีปัญหานี้
  • 8 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย TyDraniu

more options

Hello I am currently trying to add a paste button in my site and I tried using Clipboard api to read the clipboard navigator.clipboard.readText() Eventhough it works on other browsers , but it doesn’t on Firefox . So does anyone know a way to get text in clipboard to webpage that is supported in Firefox?

Hello I am currently trying to add a paste button in my site and I tried using Clipboard api to read the clipboard navigator.clipboard.readText() Eventhough it works on other browsers , but it doesn’t on Firefox . So does anyone know a way to get text in clipboard to webpage that is supported in Firefox?

การตอบกลับทั้งหมด (1)

more options

In Firefox it doesn't work from website's javascript. Firefox only supports reading the clipboard in browser extensions, using the "clipboardRead" extension permission.