Javascript examples for DOM HTML Element:Ol
Ol start Property - Set the start value of the ordered list to "5", when using roman numbers (type="I"):
<!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>