Retrieves the namespace defined for the element.
Syntax
HTML N/A Scripting [ sName = ] object.scopeName
Possible Values
sName String that specifies one of the following values:
HTML All standard HTML tags. scope Namespace prefix used with the custom tags. This namespace is declared in the document using the XMLNS attribute of the HTML element. The property is read-only with a default value of HTML.
Example
This example shows the values returned by the scopeName and tagUrn properties when used with a simple HelloWorld custom tag. The browser's status bar displays the property values.
<HTML XMLNS:InetSDK='http://msdn.microsoft.com/workshop'> <STYLE> @media all { InetSDK\:HelloWorld { behavior:url (simple.htc) } } </STYLE> <SCRIPT> function window.onload() { window.status = 'scopeName = ' + hello.scopeName + '; tagUrn = ' + hello.tagUrn; } </SCRIPT> <BODY> <InetSDK:HelloWorld ID='hello'></InetSDK:HelloWorld> </BODY> </HTML>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XML, XMP
See Also