Click here to Skip to main content
15,893,644 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have created an extension for Firefox and already installed. The problem is the extension is running before the web page is loaded. I want the extension to be run after the page load is completed. Currently it is running during the load of Firefox and before web page load. Can some one guide me on this?

Thanks....
Posted
Updated 11-Jun-10 5:30am
v2

1 solution

Have you tried jquery? Perhaps you could use the document.ready()? I believe if you do that, the javascript executes after the DOM (page) has loaded.
Example: (assuming of course you are including the jQuery library.)

JavaScript
<script type="text/javascript">
$(document).ready(function () {
//this code should only execute after the page has fully loaded

});
</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900