Navigator

The Clipboard API allows developers to respond to clipboard instructions (cut, copy, and paste) and asynchronously read from or write to the system clipboard.

Copy/paste is one of the most often used functionalities in modern computing, and it refers to the process of copying or transferring text or images from one section of a computer-based application to another. Recently, it has become normal practice to copy some material programmatically to a user's clipboard, so that they don't have to do it using their traditional Ctrl + C.

JavaScript: copy to the clipboard

The entire procedure can be reduced to a button (or other element) that activates the code! You could also do this on the page load, but it is generally prudent to be cautious when automatically interacting with the user and executing actions that affect their local machine (such as copying anything to the clipboard).