HTML DOM axis Property
Complete TableCell Object Reference
Definition and Usage
The axis property sets or returns a comma-delimited list of related table
cells (categories).
The axis attribute defines a category name for a table cell.
Syntax
tabledataObject.axis=text
|
Example
The following example returns the axis of a table cell:
<<html>
<head>
<script type="text/javascript">
function alertAxis()
{
alert(document.getElementById('td3').axis);
}
</script>
</head>
<body>
<table border="1">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>City</th>
</tr>
<tr>
<td id="td1">Harry</td>
<td id="td2">Potter</td>
<td id="td3" axis="location">NY</td>
</tr>
<tr>
<td id="td4">Peter</td>
<td id="td5">Griffin</td>
<td id="td6" axis="location">Las Vegas</td>
</tr>
</table>
<br />
<input type="button" onclick="alertAxis()"
value="Alert axis" />
</body>
</html>
|
Try-It-Yourself Demos
Alert
axis of a table cell
Complete TableCell Object Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|