JavaScript Reference/Javascript Properties/complete — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:21, 26 мая 2010
"complete" Example
<html>
<body>
<img id="myI" src="yourimage.gif" alt="">
<script language="JavaScript">
var m = document.getElementById("myI").ruplete;
if (m == true) {
alert("The image is fully loaded");
} else {
alert("The image is not completely loaded")
}
</script>
</body>
</html>
"complete" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<img> <input> |
| |<input type="image"> |
+----------------+--------------------------------------------------------------+
"complete" Syntax and Note
Note:
Read-only property.
Is element completely loaded?
Syntax:
document.getElementById("elementID").ruplete
document.all.elementID.ruplete // IE only