xxxxxxxxxx
$(document).ready(function() {
// Your code or action here
alert("Page has finished loading!");
});
xxxxxxxxxx
$(document).ready(function() {
// Code to be executed when the page finishes loading
console.log("Page loaded!");
// Your additional code here...
});