Is there a way of selecting a section of HTML for copying using JavaScript, similar to how a user can do so with clicking and dragging sections of a website?
I've not been able to find anything about copying actual HTML areas, only input text, so I'm interested if this is actually possible or not.
I'm not looking for something that makes it look like it's selected, I'd like to actually select the HTML so that users can copy/ paste it into another application/ window.
Thanks!