title: How can I take a word as a input from a web page by double clicking on it?
body: <p>I want to build an web application that needs to take a word as a input from the web page by double clicking on it. I know it is possible because I’ve seen this mechanism in E2B dictionary in Google chrome extension.
  this application website link-</p>
  
  <p><a href="https://chrome.google.com/webstore/detail/bangla-dictionary-e2b-onl/kdofmbkpgbcabbjdaomfjhgplpbbgohi" rel="nofollow noreferrer">E2B dictionary</a></p>
  
  <p>But, I don’t know how they have done it. I searched it google much but get no useful information. So, specifically is there any API or library function in JavaScript which can do this.  If there is no such library function in JavaScript so then how they can do it?</p>