$(document).ready(function() { // Code to run as soon as the page is ready })
$(document).ready(function(){ $.ajax({ url: "database/update.html", context: document.body, success: function(){ alert("done"); }}); });