最新国产好看的视频,伊人天堂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
阳谷县| 英吉沙县| 大同市| 和林格尔县| 宁陕县| 潞西市| 漯河市| 章丘市| 黔西县| 板桥市| 淄博市| 咸宁市| 普兰县| 望奎县| 黄陵县| 通城县| 冀州市| 武胜县| 井研县| 商丘市| 西充县| 正安县| 西宁市| 绵阳市| 八宿县| 德保县| 南康市| 延安市| 嘉义县| 玉山县| 荣成市| 新昌县| 东方市| 英山县| 赞皇县| 肇源县| 伊春市| 什邡市| 若尔盖县| 常州市| 谢通门县|