image_access.html 274 B

123456789101112
  1. <html>
  2. <head>
  3. <script>
  4. function updateTitle() {
  5. document.title = document.getElementById('img').naturalHeight;
  6. }
  7. </script>
  8. </head>
  9. <body onload="updateTitle()">
  10. <img id="img" onload="updateTitle()" src="chrome.png" />
  11. </body>
  12. </html>