title: Creating a chrome extension which takes highlighted text on the page and inserts it into a textarea in popup.html
body: <p>I have spent several hours searching the web for solutions. What I would like to do is take the highlighted text on a page and transfer it to a textarea in the popup.html of the chrome extension. I was wondering if someone could supply me with suggested source code of an extension that could do this.</p>
  
  <p>This is the most pertinent thread I looked at that i thought would be most helpful - query is similar. <a href="https://stackoverflow.com/questions/3767429/button-in-popup-that-get-selected-text-chrome-extension">Button in popup that get selected text - Chrome extension</a></p>
  
  <p>I tried copying the code and running it as an extension, it does not obtain the highlighted text. Was wondering if anyone had any suggestions and how to solve this problem. Thank you very much.</p>