www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Methods
 item Method
item Method

Retrieves a namespace object from the namespaces collection.

Syntax

oItem = namespaces.item(vIndex)

Parameters

vIndex Required. Integer or String that specifies the namespace to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, the namespace matching the string is retrieved.

Return Value

Returns a namespace if successful, otherwise null.

Examples

This example uses the item method to retrieve a namespace from the namespace collection, import an element behavior, and dynamically add the element behavior to the document.

<HTML XMLNS:xx>
<HEAD>
<SCRIPT>
function Init()
{
    
    "xx");
    oNS.doImport("editBox.htc");
    oElem = document.createElement("xx:editBox");
    document.body.appendChild(oElem);	
}
</SCRIPT>
</HEAD>
<BODY ></BODY>
</HTML>

Standards Information

There is no public standard that applies to this method.

Applies To

namespaces
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG