Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call a function when page is loaded

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript">

    $(document).ready(function () {
        yourFunction();
    });
    function yourFunction(){
      //some code
    }
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #function #page #loaded
ADD COMMENT
Topic
Name
3+4 =