开发者

How do you add an entry in the context menu list in firefox?

I'm currently developing an addon for firefox that posts data periodically to a server; but I would like to be able to stop posting when needed. Since you can not call functions within an addon from Firebug/Web Console, the next best alternative is to have an entry 'Stop Posting' in the context menu of the docu开发者_StackOverflow中文版ment. Do you know how to add this entry to the list and fire a function when clicked on?


See https://developer.mozilla.org/En/XUL/PopupGuide/Extensions#Modifying_the_context_menu

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜