asp.net.ph

Skip Navigation Links

complete Property

window Properties   Object Properties Summary


Retrieves whether the object is fully loaded.

Syntax


HTML N/A
Script [ bComplete = ] window.complete

Possible Values


false The object has not been loaded.
true The object is loaded.

The property is read-only with a default value of false.

Example

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 

Applies To

window



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note