Javascript Help: IMG (Image) Object

JavaScript can be used to access a number of DOM (Document Object Model) Objects. Here is the IMG (Image) object and it's internals.
GIF Image

JPG Image

PNG Image

Tip: This example uses a small script library to expose the properties and methods of a passed object. You can use it from where it lives on the web during your own development, or download it and tweak to suite your needs. View the source of expose.js for additional info. Here's an example of it's usage:

<script src="http://esqsoft.com/tools/expose.js"></script> <script>expose(img)</script>

Other Popular and Related Resources

Related Keywords: javascript, img, image, object, expose, method, DOM attributes for image object