<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Reference%2FJavascript_Methods%2FqueryCommandState</id>
		<title>JavaScript Reference/Javascript Methods/queryCommandState - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Reference%2FJavascript_Methods%2FqueryCommandState"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Methods/queryCommandState&amp;action=history"/>
		<updated>2026-04-04T10:48:22Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Methods/queryCommandState&amp;diff=7841&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Methods/queryCommandState&amp;diff=7841&amp;oldid=prev"/>
				<updated>2010-05-26T08:22:24Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 08:22, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Methods/queryCommandState&amp;diff=7840&amp;oldid=prev</id>
		<title> в 18:30, 25 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=JavaScript_Reference/Javascript_Methods/queryCommandState&amp;diff=7840&amp;oldid=prev"/>
				<updated>2010-05-25T18:30:12Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==&amp;quot;queryCommandState()&amp;quot; Example==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
function function1() {&lt;br /&gt;
    var myText = document.selection.createRange();&lt;br /&gt;
    if (!myText==&amp;quot;&amp;quot;){&lt;br /&gt;
        if (myText.queryCommandEnabled(&amp;quot;Delete&amp;quot;) == true) {&lt;br /&gt;
          document.execCommand(&amp;quot;Delete&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    var m = myText.queryCommandState(&amp;quot;Delete&amp;quot;);&lt;br /&gt;
    if (m == false) {&lt;br /&gt;
       alert(&amp;quot;Delete command has not been executed&amp;quot;);&lt;br /&gt;
    } &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;p id=&amp;quot;myText&amp;quot;&amp;gt;&lt;br /&gt;
Select text in this paragraph, and then click button.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;button&amp;quot; value=&amp;quot;Click to delete selection and verify command state&amp;quot; onclick=&amp;quot;function1();&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
      &lt;br /&gt;
      &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;queryCommandState()&amp;quot; is applied to==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
Names noted with an asterisk (*) are JavaScript properties only.&lt;br /&gt;
+----------------+--------------------------------------------------------------+&lt;br /&gt;
| Applied_To     |controlRange*                   document                      |&lt;br /&gt;
|                |TextRange                                                     |&lt;br /&gt;
+----------------+--------------------------------------------------------------+&lt;br /&gt;
      &lt;br /&gt;
      &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;queryCommandState()&amp;quot; Syntax, Parameters and Note==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
Note:&lt;br /&gt;
Has the command already been executed. &lt;br /&gt;
Returns true or false.&lt;br /&gt;
    &lt;br /&gt;
Syntax:&lt;br /&gt;
    &lt;br /&gt;
controlRangeName.queryCommandState(param1)&lt;br /&gt;
objectName.queryCommandState(param1)&lt;br /&gt;
Parameters:&lt;br /&gt;
    param1   Required; the name of the command. &lt;br /&gt;
                       For a complete list of commands, go to &lt;br /&gt;
                       http://msdn.microsoft.ru/workshop/author/dhtml/reference/commandids.asp.&lt;br /&gt;
    &lt;br /&gt;
      &lt;br /&gt;
      &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>