title: Passing text to a popup window opened in a JS function
body: <p>In my application, i need to open a popup and display some results coming from a Javascript function. I open the popup window with the command:</p>
  
  <p><code>var popup=window.open('popup.html', 'width=500', 'height=500');</code> </p>
  
  <p>where <code>popup.html</code> is an html page that calls the chart.js library for showing some graphs. I need to pass data to this window in order to display the correct graph. I tried a lot of examples, but none worked. How could i solve this problem?</p>
  
  <p>Luca</p>