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.
You call JS functions using NPN_Invoke()
or NPN_InvokeDefault()
.
I recommend to read through some introductory material on writing NPAPI plugins.