Search completed in 1.30 seconds.
1 results for "npnvariables":
Scripting plugins - Plugins
Plugins › Guide › Scripting plugins
t by calling: NPP_GetValue(npp, NPPVpluginScriptableNPObject, ...); Accessing browser objects from a plugin A plugin that wishes to access objects in the browser window that loaded the plugin can do this by getting the NPObject for the browser's window object, or the DOM element that loaded the plugin. This is done by using an extension to NPN_GetValue. The extensions are two additions to the NPNVariables enumeration; the new enumerations are NPNVWindowNPObject and NPNVPluginElementNPObject. Calling NPN_GetValue() with either of those new enumerations will return an NPObject representing the browser object, and from there, the functions in this API can be used to get and set properties, and to call methods on those browser objects. And as always when working with reference counted NPObjects, the ...