call a function on load jquery

JavaScript
$(document).ready(function () {
  // Function code here.
});
Source

Also in JavaScript: