Search code examples
safarinpapibrowser-plugin

NPAPI plug-in call javascript function?


is there any way the NPAPI plug-in call the function in JS? if yes,please give me an example.By the way,my plug-in is running on safari.
Thanks very much.


Solution

  • You call JS functions using NPN_Invoke() or NPN_InvokeDefault().
    I recommend to read through some introductory material on writing NPAPI plugins.