How to know when all of the page is loaded
Just put your code inside the following function and it will run when the document is ready for it to run.
<script type="text/javascript">
$(document).ready(function() {
// put your javascript here
});
</script>
[Click to add or edit comments])
Please prepend comments below including a date