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

namespaces Collection

Internet Development Index

Retrieves a collection of namespace objects.

Syntax

[ oNamespace = ] document.namespaces
[ oObject = ] document.namespaces(iIndex)

Possible Values

oNamespaceArray of namespace objects.
oObjectReference to an individual item in the array of elements contained by the object.
iIndexRequired. Integer that specifies the zero-based index of the item to be returned.

Members Table

PropertyDescription
length Sets or retrieves the number of objects in a collection.
MethodDescription
add Creates a new namespace object and adds it to the collection.
item Retrieves a namespace object from the namespaces collection.

Example

This sample demonstrates how to programmatically retrieve the names for all namespaces within the primary document.

<HTML XMLNS:firstNS
XMLNS:secondNS
XMLNS:thirdNS>
<HEAD>
<?IMPORT NAMESPACE="firstNS" IMPLEMENTATION="some_namespace.htc">
<?IMPORT NAMESPACE="secondNS" IMPLEMENTATION="some_namespace.htc">
<?IMPORT NAMESPACE="thirdNS" IMPLEMENTATION="some_namespace.htc">
<SCRIPT>
function getNS(){
// Retrieving the namespace's name two different ways.
var strInfo = "The following methods demonstrate how to retrieve a "
strInfo += "namespace's name.\n\n";
for(x = 0; x < document.namespaces.length; x++){
oRow = oTable.insertRow();
//Create cell with the Index.
oCell = oRow.insertCell();
oCell.align = 'center';
oCell.innerText = x;
/* Create cell with the namespace name using
document.namespaces.item(iIndex).name. */
oCell = oRow.insertCell();
oCell.align = 'center';
oCell.innerText = document.namespaces.item(x).name;
/* Create cell with the namespace name using
document.namespaces(iIndex).name. */
oCell = oRow.insertCell();
oCell.align = 'center';
oCell.innerText = document.namespaces(x).name;
}
}
</SCRIPT>
</HEAD>
<BODY>
<TABLE id="oTable" BORDER=1>
<TR>
<TH>Index</TH>
<TH>Using<BR>document.namespaces.item(iIndex).name</TH>
<TH>Using<BR>document.namespaces(iIndex).name</TH>
</TR>
</TABLE>
<BR>
<BUTTON id="btn1" onclick="getNS();">Retrieve names</BUTTON>
</BODY>
</HTML>
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.

Applies To

document

See Also

Introduction to Viewlink, About Element Behaviors
孟津县| 玉龙| 思茅市| 宣城市| 丰顺县| 宾川县| 亚东县| 滦南县| 灵丘县| 板桥市| 姚安县| 渝中区| 武乡县| 湟中县| 报价| 类乌齐县| 久治县| 射洪县| 浦城县| 五常市| 崇文区| 巴南区| 怀远县| 汉中市| 墨竹工卡县| 都兰县| 罗定市| 大悟县| 涞源县| 临澧县| 邹城市| 车致| 三门峡市| 织金县| 南城县| 成安县| 金乡县| 乌恰县| 海安县| 宜阳县| 井研县|