Reputation: 2796
I am working on the firefox addon. In this i have to add the spefic code that runs each time the firefox is loaded. So where should i write this block of code.
Which event should i add and should it be in overlay.js file?
If my information is incomplete, please specify what else should i post here.
Thanks BHAVIK GOYAL
Upvotes: 0
Views: 63
Reputation: 30301
Execute this in the main overlay:
window.addEventListener( "load", function() {
// code to run at startup
}, false );
Upvotes: 2