I want to implement a listener/observer开发者_JAVA百科 for my XPCOM component, so my javascript code can register to be notified of some events. Is it possible?
If I understand you correctly https://developer.mozilla.org/en/Creating_JavaScript_callbacks_in_components might be just the thing you are looking for.
精彩评论