NPAPI: is there a way to create an event for JS?

Is there a way for the NPAPI plugin to fire an event on the homepage side? that is, the page containing the tag <embed>

that instantiates the plugin.

Disclaimer: I am an NPAPI newbie.

+2


source to share


2 answers


A way has been found: from the plugin's side, set the "addEventListener" method and use the JS interface to register "listeners".



When the event happens on the plugin side, pass through the "listeners".

0


source


You probably want to: Generate Javascript Asynchronous Events from a Browser Plugin (NPAPI)



0


source







All Articles