title: How to copy text from tooltip in Html/JS
body: <p>I have an image on a page. On hovering to the image, you see a tool tip with some details. Say, for example - <code>Name : xyz, Account id : abc1234, Technical id : 0000</code></p>
  
  <p>User wants to copy some text from this tooltip like the account id <code>abc1234</code>. How can this be achieved in JS?</p>
  
  <p>I am asking this from code perspective so that the end user can use this functionality. I am not looking for any hacks/tricks to copy the text from browser.</p>