[Resolved] How to select a div content like if done by user?

[Resolved] How to select a div content like if done by user?

an user asked me a "Select all" link/button on the page to select a precise area of what0s on screen.

It's easy to identify the area, because it's all on a specific div.

How can I visually select all the div content, like if user has selected it by click & drag of the mouse ?

It's only a 'shrtcut' to allow user to, then, right-click -> copy