Skip to main content

ReadClipboard

WLJS
Execution environment
Notebook`Interpreter`
Context
ReadClipboard[] _String

returns text content of a user's clipboard.

Example

It is pure WLJS function, which has to be executed using FrontFetch or FrontSubmit

Read and alert

We will read it and then make a pop-up message using Alert

FrontSubmit[Alert[ReadClipboard[]]]

Read and get back to Wolfram Kernel

Here we use FrontFetch to get the data back to Wolfram Kernel

FrontFetch[ReadClipboard[]]