title: Return Array from NPAPI plugin to java script
body: <p>I want to return array of string from NPAPI plugin to Javascript. Currently I am using only plain NPAPI. I have read the following links:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/1896166/npvariant-to-string-array">NPVariant to string array</a></li>
  <li><a href="http://www.m0interactive.com/archives/2010/10/21/how_to_communicate_back_to_javascript_from_npapi_plugin.html" rel="nofollow noreferrer">http://www.m0interactive.com/archives/2010/10/21/how_to_communicate_back_to_javascript_from_npapi_plugin.html</a></li>
  </ul>
  
  <p>I am able to return alert() from plugin to javascript and I can get the NPNVWindowObject, but I am stuck right now on figuring out how to push elements onto the array and return it to javascript.</p>
  
  <p>Working code samples would be appreciated, thanks</p>