Copy Text to Clipboard in JavaScript

Users, you click the "Copy text" button to copy the content from the text dialog box.
You can also use your keyboard and press and paste the text by pressing the keys: ctrl+v) afterward in a different window, to see the effect.