I'm making an extremely simple small page that uses prompt to get a numerical input from the user and then uses that to copy certain data to the clipboard. However, the async Clipboard API does not allow this, as it is "not user triggered", and I'm hoping to avoid execCommany("copy") for simplicity (as it necessitates elements on the page). Is it possible to do this? Can the prompt window be properly recognized as being user input and allowed?
Asked
Active
Viewed 37 times
0
SirNapkin1334
- 55
- 1
- 6
-
Can you explain why clipboard API does not work? – Khalil Feb 12 '22 at 08:19