Javascript : Load
Add script to HTML
<script type="text/javascript" src="/js/myjs.js"></script>
ES6 DOM Loaded
document.addEventListener('DOMContentLoaded', (e) => {
console.log(123);
});
jQuery DOM Loaded
$(document ).ready(function() {
console.log(123);
});
$(function() {
console.log(123);
});
Old School
<body onload="myFunction()">
window.onload = myFunction;