Yes, it's not MozRepl-specific, but to listen for web page loads when you are in chrome (like you are when you're using MozRepl) one way might be:


getBrowser().addEventListener('load', function(event) {
    myOnLoadHandler(event); 
}, true);

Keep in mind that myOnLoadHandler will be invoked on every page load, not just the next one.

You can probably find useful snippets on http://developer.mozilla.org and perhaps something in the archive of http://groups.google.com/group/mozlab.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.