JavaScript Reference/Javascript Methods/queryCommandIndeterm

Материал из Web эксперт
Версия от 08:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"queryCommandIndeterm()" Example

    
<html>
<body>
<script language="JavaScript">
function function2() {
    var myText = document.body.createTextRange();
    var m = myText.queryCommandIndeterm("delete");
    if (m == false) {
        alert("Command is NOT indeterminate");
    } 
} 
</script>
<input type="button" 
       value="Click to check the Delete command status" 
       onclick="function2();">
</body>
</html>



"queryCommandIndeterm()" is applied to

Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| Applied_To     |controlRange*                   document                      |
|                |TextRange                                                     |
+----------------+--------------------------------------------------------------+



"queryCommandIndeterm()" Syntax, Parameters and Note

Note:
Has the command indeterminated (it cannot be accessed). 
Returns true or false.
    
Syntax:
    
controlRangeName.queryCommandIndeterm(param1)
objectName.queryCommandIndeterm(param1)
Parameters:
    param1   Required; the name of the command. 
                       For a complete list of commands, go to 
                       http://msdn.microsoft.ru/workshop/author/dhtml/reference/commandids.asp.