how to check that document is ready using jquery

in this web programming tutorial we will learn that how can we know that our document is ready or not to perform some action or not Jquery has a megical fucntion for us to do so at client end or for end user (browser).

$(document).ready(function() {
alert('Welcome to StarTrackr! Now no longer under police …');
});
another way to perform same as document.ready does see the a shortcut version:

$(function() { alert('Ready to do your bidding!'); });

Admin

A Software Engineer, Social Media Marketing Expert, writer,

Post a Comment

Previous Post Next Post