Chrome DevTools: Copy an element into your clipboard with this keyboard only workflow
Last updated: 17th June 2020![Copy an element into your clipboard with this keyboard only workflow](/assets/images/dev-tips/copy-html-element-clipboard.gif)
You can get any element into your clipboard with this keyboard only workflow. In the Console Panel, try this:
copy(document.body)
This also works for JavaScript objects, for example:
copy({
my: 'object'
})