If I put a script tags <script src="url"></script> in the head section of the page like
<html>
  <head>
    <script src="url1"></script>
    <script src="url2"></script>
    <script src="url3"></script>
    <script src="url4"></script>
  </head>
</html>
if some of them has failed to load, how can I detect the same and alert the user like
function scriptLoadFailed( url )
{
   alert( url + " loading failed!" );
}
Thanks in advance.
 
    