Chapter 4. Altering Lists

IN THIS CHAPTER

  • Adding to Lists

  • Switching Between Unordered and Ordered Lists

  • Inserting Line Items into Specific Positions

This is another chapter that doesn't contain any code for Netscape 4. There isn't really any way to alter lists in Netscape 4, other than creating a list with document.write and reloading the page each time you want to change something in the list, just like we did with tables in Chapter 2. If you can avert your eyes from Netscape 4, though, the world is a brighter place. You can add items to lists without reloading the page, change the value of certain line items, and switch between ordered and unordered lists.

Get Advanced JavaScript™: Insights and Innovative Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.