title: Javascript - How can I copy a text to clipboard without displaying a textarea?
body: <p>I'm trying to copy to the user's clipboard a path to the log files in Javascript. However, I do not wish to use an input field or textarea. Other solutions indicate that I should use an input field, select the text from the field, then copy it. Is there any workaround to have a code-defined string directly copied to my clipboard? Thanks.</p>
  <ul>
  <li>I use plain JS and Node.js</li>
  <li>I am trying to copy a text defined in my code (local path to log files) to the user's clipboard without using any user input fields (textarea, input tags). The other questions seem to either use user fields or 3rd party APIs. I do not want that! I am looking for some JS code that will accomplish all this.</li>
  </ul>