prefix property

Retrieves the local name of the fully qualified XML declaration for a node.

Document Object Model (DOM) Level 3 Core Specification, Section 1.2

Syntax

JavaScript

p = object.prefix

Property values

Type: Variant

The prefix.

The prefix.

Standards information

Remarks

In XML documents, elements can be declared using qualified names, which consist of a prefix and a local name. This property returns the former value.

For more information, see W3C Namespaces in XML.

See also

a
attribute
audio
button
div
document
documentType
frame
iframe
img
input type=button
input type=checkbox
input type=email
input type=file
input type=hidden
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
label
legend
media
object
optGroup
option
ProcessingInstruction
select
source
span
table
textArea
TextNode
video
Reference
localName
namespaceURI

 

 

Show:
© 2014 Microsoft