Skip to content

Commit

Permalink
add caniuse link
Browse files Browse the repository at this point in the history
  • Loading branch information
loverajoel committed Aug 1, 2016
1 parent 98afc3e commit b4b2f47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This is a simple tip, this week I had to create a common "Copy to Clipboard" but
It's easy, the bad thing is that we must have to add an `<input/>` with the text to be copied to the DOM. Then, we selected the content and executes the copy command with [execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand).
`execCommand('copy')` will copy the actual selected content.

Also, this command that now is supported by all the latest version of browsers, allows us to execute another system commands like `copy`, `cut`, `paste`, and make changes like fonts color, size, and much more.
Also, this command that now is [supported](http://caniuse.com/#search=execCommand) by all the latest version of browsers, allows us to execute another system commands like `copy`, `cut`, `paste`, and make changes like fonts color, size, and much more.

```js
document.querySelector('#input').select();
Expand Down

0 comments on commit b4b2f47

Please sign in to comment.