How can i trigger a Javascript when the page is being loaded ?

If you wish to trigger a custom script when the page is loaded you will need to use the following syntax:

<script type="text/javascript">
window.addEvent('domready', function() {

your_custom_script

});
</script>

7 persons found this article helpful.


Was this article helpful?

Yes No
Sorry about that