On Jun 8, 1:05 am, -Lost <maventheextrawo...@techie.comwrote:
Why is Image not mentioned anywhere as a global object? Or at least as
one of JavaScript's native objects?
http://developer.mozilla.org/en/docs...5_Reference:Gl...
That is the Mozilla reference for their javascript language (i.e. the
Mozilla implementation of ECMAScript Language), which does not have an
Image object. The Gecko DOM reference is here:
<URL;
http://developer.mozilla.org/en/docs..._DOM_Reference >
However, it is not maintained by the Mozilla or Firefox development
teams. It is maintained as a community effort by anyone who wants to
help and, while quite useful, is incomplete. It doesn't mention
HTMLImageElement because no one has added it - feel free to sign up
and start helping. :-)
I cannot find any information of it at the Gecko pages nor did I find
any in depth reference at MSDN.
See above.
http://msdn2.microsoft.com/en-us/lib.../ms533050.aspx
Granted, the MSDN site makes me sick, so I did not search long. I never
know if I should be reading the JScript reference, the DHTML reference
or what.
The *only* mention of it I found was at the Gecko pages, but it was an
article on the use of the CANVAS element.
The HTMLImageElement interface is listed along with all the other
HTML DOM objects in the W3C DOM HTML specification, as is the images
collection:
Collections:
<URL:
http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-75708506 >
images:
<URL:
http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-90379117 >
The index is a great place to start when looking for things, as are
the elements and properties sections of the HTML and CSS
specifications.
--
Rob