Javascript DOM HTML Ol type Property set to use lowercase roman numbers

Introduction

Set the ordered list to use lowercase roman numbers:

document.getElementById("myOl").type = "i";

Click the button to set the ordered list to use lowercase roman numbers.

View in separate window

<!DOCTYPE html>
<html>
<body>

<ol id="myOl">
  <li>CSS</li>
  <li>HTML</li>
  <li>Java</li>
</ol>//from   w w w  . j ava  2 s .  com



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

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

</body>
</html>



PreviousNext

Related