问题
I need to pass currently browsing url string which I have in my javascript to npapi plugin. How can I do this?
回答1:
Please see http://npapi.com/tutorial3
You need to create a NPObject to return to the page; you can then implement a method or property for making the call.
You may want to look at FireBreath; it simplifies all of this.
来源:https://stackoverflow.com/questions/6986390/pass-url-from-java-script-to-npapi-plugin