jquery document ready example

jquery

JavaScript

$(document).ready(function(){

alert(1);

});