This blog is about Document Ready Event in jQuery,
Document Ready Event :
The document ready event is allowed to perform the functions once the page(DOM) gets loaded. Because in some cases the page takes time to get load.
Similarly There is also an another event called Windows load
Windows Load Event :
This event is also works like DOM.
The difference is, will allows to perform the function once the entire page (including images & iframes not only DOM) get loaded.
1. At .php file:
<html lang ="en">
<title>Document Ready Event</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
Welcome to Geeks.gallery
2. At .js file:
alert('Document is ready');
Thanks for Reading !!!
Latest posts by Jayalakshmi (see all)