Answers for "when the page is loaded 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 () {
    function yourFunction(){
      //some code
Posted by: Guest on May-26-2020

html tag run only after whole page is loaded

<body onload="script();">
<!-- will call the function script when the body is load -->
Posted by: Guest on September-11-2020

Code answers related to "when the page is loaded javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language