The code below should be self explanatory
NPP_PostURLNotify() //post to a URL that returns a pure java script code
NPP_WriteReady()
NPP_Write() // when the browser calls back this function does it execute that java script before calling this function?
UPDATE: Ok, i spent some time and figured that it doesn't.