Text can be programmatically copied into clipboard by just one line of code
This function only works inside event handlers. So you can’t just call it whenever you like to. For example:
intel.xdk.device.copyToClipboard("This is the text in clipboard");
Make sure you have also added Intel XDK Device plugin in your app.