Moshe's Blog

Tips and tricks learnt along the way.

Devtools Copy to Clipboard

| Comments

I was playing around with devtools and i saw in the autocomplete list of functions had copy()
It does what it sounds like it does (copies text to the clipboard)

> copy("I'm about to hit ctrl+v")
undefined
> I'm about to hit ctrl+v

Very useful for when you need to manipulate large chunks of text.

Works in Devtools and Firebug (at least)

Comments