Page tree
Skip to end of metadata
Go to start of metadata

This PC Integration API allows you to copy text to the PC's clipboard. This is very useful as there is otherwise no standardized browser-only solution way for browser applications to interact with the clipboard.

Looking for a Browser-Only Solution?

There are a variety of solutions available, but there is no standardized solution as of yet for browsers. This is due to security concerns, but if you would like to try the existing solutions, you can find the simple JavaScript solution here. It is important that you review the limitations and browser support list before implementing this solution.

Example

In this example, the text "Hello world." will be copied to the PC's clipboard.

copyToClipboard("Hello world.");
  • No labels