'Function Javascript copy

I have a problem, I want to import the text of a text area from an HTML file to a javascript function contained in another HTML file to copy that in the clipboard through a button. Do you know how this can be done?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source