<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Executing a Function on Ready Event in jQuery</title> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("p").text("The Document Object Model (DOM) has finished loading and is ready for manipulation."); }); </script> </head> <body> <p>Not loaded yet.</p> </body> </html>