onload - 图像加载后

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script>
  5. function loadImage() {
  6. alert("图像已加载");
  7. }
  8. </script>
  9. </head>
  10. <body>
  11.  
  12. <img src="/i/shanghai_lupu_bridge.jpg" onload="loadImage()" />
  13.  
  14. </body>
  15. </html>