3 ms·
No, you can't do that. from the mozilla link, "Google Chrome and Internet Explorer both also support this API. Chrome uses the same restriction as Firefox (that
by anjanb 11y ago
No, you can't do that.
from the mozilla link,
"Google Chrome and Internet Explorer both also support this API. Chrome uses the same restriction as Firefox (that it must be run in a user-initiated callback). Internet Explorer allows it to be called at any time, except it first prompts the user with a dialog, asking for permission to access the clipboard."
- MichaelGG 11y agoClicking a link is a user-initiated callback. So yes, he can do exactly that. I wonder if mouse move is also user-initiated.