<script type="text/javascript">
function insertElement()
{
var nod=document.createElement("li");
oUL1.insertBefore(nod, oLIYellow);
nod.innerText="Orange";
}
</script>
</head>
<body>
<p >Click <strong>HERE</strong> to add an item to the following list.</p>
<ul id="oUL1">
<li id="oLIRed">Red</li>
<li id="oLIYellow">Yellow</li>
<li id="oLIBlue">Blue</li>
</ul>
</body>