title: How can i send a message from content script to popup script to appear on popup.html
body: <p>****I am making a google extension software and i have an array i had created on content script file and i want to show its elements on popup.html where i had created a div element to include them and i want every element of array to be inside a different div.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//content script
  
  var arr= [a,b,c,d];</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>//popup.html
  
  &lt;div class="showhere"&gt;&lt;/div&gt;
  
  
  
  //required popup.html to be
  
  &lt;div class="showhere"&gt;
        &lt;div&gt;a&lt;/div&gt;
        &lt;div&gt;b&lt;/div&gt;
        &lt;div&gt;c&lt;/div&gt;
        &lt;div&gt;d&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I hope i can get the solution with example, thank.****</p>