Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Clipboard Demo

This project originally started off by re-creating the GitHub copy to clipboard feature when you Clone or Download the repo. It has since been edited to remove Zeroclipboard and provide two demos:

  • Cut and Copy from an input text box using document.execCommand()
  • Copy from a paragraph tag by creating a range using document.createRange() and the Selection API