window Properties Object Properties Summary
Retrieves whether the object is fully loaded.
HTML |
N/A |
Script |
[ bComplete = ] window.complete |
false |
The object has not been loaded. |
true |
The object is loaded. |
The property is read-only with a default value of false.
The following example demonstrates retrieving the complete property to enable a control, in this case a check box.
<script language="JavaScript">
function checkComplete ( ) {
var checkIt = window.complete;
if ( checkIt == "false" ) {
alert ( "Window has not loaded." );
}
else {
alert ( "Window has loaded." );
oCheckbox.disabled = false;
}
}
</script>
<body onload=checkComplete ( ) >
:
Check here only after the page has loaded:
<INPUT id=oCheckbox TYPE=checkbox DISABLED>
This feature requires Microsoft® Internet Explorer® 4.0 or later.
Show me
window