I would like to reproduce this behaviour of github when you clone a url : select all the content when clicked.
in JavaScript it\'s as simple as that :