#[AJAX] Loading screen waiting on php exec # <html> <head> <title>loading please wait</title> </head> <body> <div id="loading_div" style="display:none; width: 500px; margin:auto; margin-top: 50px; text-align: center">Veuiller patientez pendant l'execution du script <br /><br /><img src="ajax-loader.gif" /></div> <script type="text/javascript" src="jquery-1.8.1.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $.ajax({ url: 'newpage.php', type: "POST", beforeSend: function(){ $("#loading_div").show(); }, success: function(retour){ $('#loading_div').html(retour); } }); }); </script> </body> </html> source: https://forum.alsacreations.com/profile-40255-Apoooo.html