firefox addon - javascript can't use xul's oncommand? -


i writing firefox extension , wondering if possible use xul's 'oncommand' in .js file include xul. may sounds stupid decided ask 100% sure it's impossible (or possible :))

i can use in situation (xul file):

  <toolbarpalette id="browsertoolbarpalette">    <toolbarbutton id="quizy-toolbar-button"       class="toolbarbutton-1 chromeclass-toolbar-additional"       label="test"       tooltiptext="test button"       oncommand="engine.iconcommand()"    />  </toolbarpalette> 

and in included .js doesn't work.

 document.oncommand = function(e){    alert('tango down');  }; 

no, there no oncommand property (watch bug 246720).

but can listen command event, right way after all.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -