Ol type Property - Set the ordered list to use uppercase roman numbers: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Ol

Description

Ol type Property - Set the ordered list to use uppercase roman numbers:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<ol id="myOl">
  <li>A</li>
  <li>B</li>
  <li>C</li>
</ol>//from w  ww. j  a va  2  s.  c o m

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

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

</body>
</html>

Related Tutorials