⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dom_attribute.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>XML DOM - Attr object</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>


<h1>XML DOM - The Attr Object</h1>
<a href="dom_element.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="dom_text.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>
<hr />
<p class="intro">The Attr object represents an attribute of an Element object.</p>
<hr />

<h2>The Attr object</h2>
<p>The Attr object represents an attribute of an Element object. The allowable 
values for attributes are usually defined in a DTD. </p>
<p>Because the Attr object is also a 
Node, it inherits the Node object's properties and methods. However, 
an attribute does not have a parent node and is not considered to be a child node of an element, and will return 
null for many of the Node properties.</p>
<p>
<b>IE:</b> Internet Explorer, <b>F:</b> Firefox, <b>O:</b> Opera, <b>W3C:</b> 
World Wide Web Consortium (Internet Standard)</p>

<h3>Attr Object Properties</h3>

<table border="1" width="100%" class="ex" cellspacing="0" id="table9">
<tr>
<th width="32%" align="left" valign="top">Property</th>
<th width="48%" align="left" valign="top">Description</th>
<th width="5%" align="left" valign="top">IE</th>
<th width="4%" align="left" valign="top">F</th>
<th width="4%" align="left" valign="top">O</th>
<th width="7%" align="left" valign="top">W3C</th>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_baseuri.asp">baseURI</a></td>
	<td valign="top">Returns the absolute base URI of the attribute</td>
	<td valign="top">No</td>
	<td valign="top">1</td>
	<td valign="top">No</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_isid.asp">isId</a></td>
	<td valign="top">Returns true if the attribute is known to be of type ID, otherwise it returns 
	false</td>
	<td valign="top">No</td>
	<td valign="top">No</td>
	<td valign="top">No</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_localname.asp">localName</a></td>
	<td valign="top">Returns the local part of the name of the attribute</td>
	<td valign="top">No</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_name.asp">name</a></td>
	<td valign="top">Returns the name of the attribute</td>
	<td valign="top">5</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_namespaceuri.asp">namespaceURI</a></td>
	<td valign="top">Returns the namespace URI of the attribute</td>
	<td valign="top">No</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_nodename.asp">nodeName</a></td>
	<td valign="top">Returns the name of the node, depending on its type</td>
	<td valign="top">5</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_nodetype.asp">nodeType</a></td>
	<td valign="top">Returns the type of the node</td>
	<td valign="top">5</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_nodevalue.asp">nodeValue</a></td>
	<td valign="top">Sets or returns the value of the node, depending on its 
	type</td>
	<td valign="top">5</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_ownerdocument.asp">ownerDocument</a></td>
	<td valign="top">Returns the root element (document object) for an attribute</td>
	<td valign="top">5</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_ownerelement.asp">ownerElement</a></td>
	<td valign="top">Returns the element node the attribute is attached to</td>
	<td valign="top">No</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_prefix.asp">prefix</a></td>
	<td valign="top">Sets or returns the namespace prefix of the attribute</td>
	<td valign="top">No</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top">schemaTypeInfo</td>
	<td valign="top">Returns the type information associated with this attribute</td>
	<td valign="top">No</td>
	<td valign="top">No</td>
	<td valign="top">No</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_specified.asp">specified</a></td>
	<td valign="top">Returns true if the attribute value is set in the document, 
	and false if it's a default value in a DTD/Schema.</td>
	<td valign="top">5</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_textcontent.asp">textContent</a></td>
	<td valign="top">Sets or returns the textual content of an attribute</td>
	<td valign="top">No</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_text.asp">text</a></td>
	<td valign="top">Returns the text of the attribute. 
	IE-only property</td>
	<td valign="top">5</td>
	<td valign="top">No</td>
	<td valign="top">No</td>
	<td valign="top">No</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_value.asp">value</a></td>
	<td valign="top">Sets or returns the value of the attribute</td>
	<td valign="top">5</td>
	<td valign="top">1</td>
	<td valign="top">9</td>
	<td valign="top">Yes</td>
</tr>
<tr>
	<td valign="top"><a href="prop_attr_xml.asp">xml</a></td>
	<td valign="top">Returns the XML of the attribute. IE-only 
	property</td>
	<td valign="top">5</td>
	<td valign="top">No</td>
	<td valign="top">No</td>
	<td valign="top">No</td>
</tr>
</table>
<br />
<hr />

<a href="dom_element.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="dom_text.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -