Name

complete — NN 3 IE 4 DOM n/a

Synopsis

Read-only

Reveals whether the IMG element’s SRC image file has fully loaded. Note that Navigator 4 provides an incorrect true reading before the image has completely loaded.

Example

if (document.logo.complete) {
    safe to process the image object
}

Value

Boolean value: true | false.

Default

false

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.