JavaScript Reference/Javascript Properties/indeterminate

Материал из Web эксперт
Перейти к: навигация, поиск

"indeterminate" Example

   <source lang="javascript">
   

<html> <body> <input type="checkbox" id="myCheckBox" value="checkbox" checked> Indeterminate = true. <input type="button" value="Checkbox state" onClick="function1();"> <script language="JavaScript"> document.all.myCheckBox.indeterminate = true; function function1() {

  var m = document.all.myCheckBox.indeterminate;
  alert("Indeterminate: "+m); 

} </script> </body> </html>


     </source>
   
  


"indeterminate" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<input type="checkbox"> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"indeterminate" Possible Values

   <source lang="javascript">

Possible Values true false (the default).


     </source>
   
  


"indeterminate" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Is the state of a checkbox dimmed.

Syntax:

document.all.checkboxID.indeterminate = value


     </source>