0 out of 1 rated this helpful - Rate this topic

tagUrn property

[This documentation is preliminary and is subject to change.]

Sets or gets the Uniform Resource Name (URN) specified in the namespace declaration.

Syntax

JavaScript

p = object.tagUrn

Property values

Type: String

the URN in the namespace declaration, or the value in Possible Values.

null

Default. Returned for standard HTML tags, or for custom tags that omit the namespace declaration.

Remarks

To declare the namespace in the document, use the XMLNS attribute of the html element.

Download the HTC for the sample below: simple.htc

Examples

This example uses the values returned by the scopeName and tagUrn properties to create a simple HelloWorld custom tag.

The browser's status bar displays the property values.

Note  For IE8Standards mode to render correctly, make sure there is no spaces in your call to the HTC file.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/tagUrn.htm


<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>

An alternative call to the HTC can also be made as an attribute, as shown in the following code example.

Note  Make sure there are no spaces in your style's declaration.


<HTML XMLNS:InetSDK='http://msdn.microsoft.com/workshop'>

<SCRIPT>
   function window.onload()
   {
      window.status = 'scopeName = ' + hello.scopeName +
                      '; tagUrn = '  + hello.tagUrn;
   }
</SCRIPT>
<BODY>
   <InetSDK:HelloWorld ID='hello' style="behavior:url(simple.htc)"></InetSDK:HelloWorld>
   
</BODY>
</HTML>

See also

a
abbr
acronym
address
applet
area
article
aside
b
base
baseFont
bgSound
big
blockQuote
body
br
button
caption
center
cite
code
col
colGroup
comment
custom
dd
del
dfn
dir
div
dl
dt
em
embed
fieldSet
figcaption
figure
font
footer
form
frame
frameSet
head
header
hgroup
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
mark
marquee
menu
nav
nextID
noBR
noFrames
noScript
object
ol
option
p
plainText
pre
q
rt
ruby
s
samp
script
section
select
small
span
strike
strong
style
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
title
tr
tt
u
ul
var
wbr
xml
xmp
Using Custom Tags in Internet Explorer

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ