http://snippets.bentasker.i2p/posts/javascript/select-contents-of-element-and-its-children-and-copy-to-clipboard.html
Skip to main content Private area snippets.bentasker.co.uk Search Tags BASH Python JS Misc Select contents of element and its children and copy to clipboard (Javascript) Ben Tasker 2019-10-13 12:10 Category: Javascript Sometimes it's helpful, particularly with a long element, to provide a button which automatically selects the entire content of a given element (including any children) and copies to clipboard This snippet provides a function for just that...