最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

controlRange Collection

Internet Development Index

A collection of elements returned by the createControlRange or createRange method.

Members Table

PropertyDescription
length Sets or retrieves the number of objects in a collection.
MethodDescription
add Adds an element to the areas, controlRange, or options collection.
addElement Adds an element to the controlRange collection.
execCommand Executes a command on the current document, current selection, or the given range.
item Retrieves an object from the controlRange collection.
queryCommandEnabled Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
queryCommandIndeterm Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
queryCommandState Returns a Boolean value that indicates the current state of the command.
queryCommandSupported Returns a Boolean value that indicates whether the current command is supported on the current range.
queryCommandValue Returns the current value of the document, range, or current selection for the given command.
remove Removes an element from the collection.
scrollIntoView Causes the object to scroll into view, aligning it either at the top or bottom of the window.
select Makes the selection equal to the current object.

Remarks

Instead of using the collection's item method, you can use an index to directly access an element in the collection. For example, the element returned from the collection represented by oColl(0) is the same as the element returned by oColl.item(0).

The controlRange collection is available as of Microsoft® Internet Explorer 5.

Example

This example demonstrates how to use the createRange method to retrieve the controlRange collection.

...
function fnChangeFontFamily    (){
if (document.selection.type == "Control"){
var oControlRange = document.selection.createRange();
for (i = 0; i < oControlRange.length; i++)
if (oControlRange(i).tagName != "IMG")
oControlRange(i).style.fontFamily=event.srcElement.style.fontFamily;
}
}
...
<!-- Text Font-Family Controls  -->
<SPAN  onclick="fnChangeFontFamily();">
<DIV STYLE="height: 25px; cursor:hand; font-family:times;
font-size:14pt; font-weight:normal; color:white">Times</DIV>
<DIV STYLE="height: 25px; cursor:hand; font-family:arial;
font-size:14pt; font-weight:normal; color:white">Arial</DIV>
<DIV STYLE="height: 25px; cursor:hand; font-family:georgia;
font-size:14pt; font-weight:normal; color:white">Georgia</DIV>
<DIV STYLE="height: 25px; cursor:hand; font-family:verdana;
font-size:14pt; font-weight:normal; color:white">Verdana</DIV>
</SPAN><BR/>
...
This feature requires Microsoft® Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this collection.

See Also

createControlRange, createRange
封开县| 大田县| 新竹市| 伊吾县| 涞源县| 建宁县| 泰兴市| 宁德市| 庐江县| 广平县| 长治市| 日喀则市| 沙湾县| 什邡市| 仙桃市| 开阳县| 西畴县| 汕尾市| 什邡市| 成都市| 民权县| 密云县| 遂溪县| 浦东新区| 巍山| 新竹市| 乐安县| 廊坊市| 黔西县| 三门县| 梅州市| 泸水县| 江城| 本溪市| 常熟市| 南宁市| 井陉县| 图们市| 华亭县| 祁连县| 定结县|