title: Gecko Javascript to c++
body: <p>Im using the xulrunner example application and im trying to work out how to call into c++ code from javascript. I have googled and the best i came up with was to use nsIDOMEventListener interface but have no idea how.</p>
  
  <p>Any ideas?</p>