Answers for "jquery how to make a function load on page"

42

document ready js

document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});
Posted by: Guest on July-23-2019
14

jquery doc ready

// A jQuery( document ).ready() block.
jQuery( document ).ready(function() {
    console.log( "ready!" );
});
Posted by: Guest on January-07-2020

Code answers related to "jquery how to make a function load on page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language