Hi
Have tried various options on https://wiki.nsbasic.com/ClipboardData
but can’t find a way of pasting from the clipboard into a textarea I want to use a button to pull the text in).
I found the
TextArea2.select(); document.execCommand(“Copy”);
code worked well for copying to the clipboard, but nothing seemed to work when trying to paste into the textarea.
Any ideas, please?
Thanks.
Looking at the button in the sample seems to just select the Input1 control and then copy to the clipboard. Pasting doesn’t seem to be catered for…?
I have read that pasting is not allowed, for security reasons. One reply on javascript execCommand("paste") not working - Stack Overflow
is “For security reason it is blocked in chrome. Even office 365 ask to their users to use shorcuts ctrl+v instead of copy.”