![]() This is the width the image would be if it were rendered at its natural full size. HTMLImageElement.naturalWidth Read onlyĪn integer value representing the intrinsic width of the image in CSS pixels, if it is available otherwise, it will show 0. This is the height the image would be if it were rendered at its natural full size. Returns an integer value representing the intrinsic height of the image in CSS pixels, if it is available else, it shows 0. ![]() HTMLImageElement.loadingĪ string providing a hint to the browser used to optimize loading the document by determining whether to load the image immediately ( eager) or on an as-needed basis ( lazy). The image must be contained within an element see the ismap page for details. This is different from a client-side image map, specified using an element and a corresponding which contains elements indicating the clickable areas in the image. HTMLImageElement.isMapĪ boolean value that reflects the ismap HTML attribute, indicating that the image is part of a server-side image map. HTMLImageElement.heightĪn integer value that reflects the height HTML attribute, indicating the rendered height of the image in CSS pixels. If this value is provided, it must be one of the possible permitted values: high to fetch at a high priority, low to fetch at a low priority, or auto to indicate no preference (which is the default). HTMLImageElement.fetchPriority ExperimentalĪn optional string representing a hint given to the browser on how it should prioritize fetching of the image relative to other images. Read the decoding page for details on the implications of this property's values. If this value is provided, it must be one of the possible permitted values: sync to decode the image synchronously, async to decode it asynchronously, or auto to indicate no preference (which is the default). codingĪn optional string representing a hint given to the browser on how it should decode the image. This may change as the image is adjusted due to changing conditions, as directed by any media queries which are in place. Returns a string representing the URL from which the currently displayed image was loaded. See CORS settings attributes for further details. HTMLImageElement.crossOriginĪ string specifying the CORS setting for this image element. That means this value is also true if the image has no src value indicating an image to load. Returns a boolean value that is true if the browser has finished fetching the image, whether successful or not. HTMLImageElement.altĪ string that reflects the alt HTML attribute, thus indicating the alternate fallback content to be displayed if the image has not been loaded. Inherits properties from its parent, HTMLElement.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |