Ol start Property - Set the start value of the ordered list to "5", when using roman numbers (type="I"): - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Ol

Description

Ol start Property - Set the start value of the ordered list to "5", when using roman numbers (type="I"):

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<ol id="myOl" type="I">
  <li>A</li>
  <li>B</li>
  <li>C</li>
</ol>//w w w  . ja  v  a2s.c  o  m

<button onclick="myFunction()">Test</button>

<script>
function myFunction() {
    document.getElementById("myOl").start = "5";
}
</script>

</body>
</html>

Related Tutorials