<html>
<head>
<title>Abakada DHTML Demo: appendChild Method</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="JavaScript">
function append ( ) {
var oNewNode = document.createElement ( "li" );
oList.appendChild ( oNewNode );
oNewNode.innerText = "List node " + ( oList.childNodes.length -1 );
}
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h2>Abakada DHTML Demo: <span class="hilite">appendChild</span> Method</h2></div>
<hr size=1 width=92%>
<div style="margin-left:50">
<ul id=oList>
<li>List node 1
<li>List node 2
<li>List node 3
</ul>
<p><input type=button value="Append Child" onclick="append ( )"></p>
</div>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>