add Method Home
add Method

Creates a new namespace object and adds it to the collection.

Syntax

oNamespace = object.add(sNamespace, sUrn [, sUrl])

Parameters

sNamespace Required. String that specifies the name of the namespace.
sUrn Required. String that specifies the Uniform Resource Name (URN) of the namespace to create.
sUrl Optional. String that specifies the URL of the element behavior to import into the namespace. Specifying this parameter is the same as calling the doImport method.

Return Value

Returns a namespace object.

Remarks

Adding a new namespace with the same name as an existing namespace will replace the existing namespace.

Standards Information

There is no public standard that applies to this method.

Applies To

namespaces, HTMLNamespaceInfoCollection Constructor

See Also

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View