简体   繁体   English

将URL从Java脚本传递到NPAPI插件

[英]Pass url from java script to NPAPI plugin

I need to pass currently browsing url string which I have in my javascript to npapi plugin. 我需要将我的javascript中当前正在浏览的url字符串传递给npapi插件。 How can I do this? 我怎样才能做到这一点?

Please see http://npapi.com/tutorial3 请参阅http://npapi.com/tutorial3

You need to create a NPObject to return to the page; 您需要创建一个NPObject返回页面。 you can then implement a method or property for making the call. 然后,您可以实现用于进行调用的方法或属性。

You may want to look at FireBreath ; 您可能想看看FireBreath it simplifies all of this. 它简化了所有这些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM