Chapter 16. Dynamic HTML: Changing Web Pages On-the-Fly

Dynamic HTML: Changing Web Pages On-the-Fly

Much of JavaScript is all about making your web pages “come alive,” and in this chapter we’re going to focus on that, using a variety of dynamic effects to change your web pages on-the-fly. Here’s an overview of the techniques we’ll see here:

  • Changing visual properties on-the-fly

  • Rewriting documents with the document.write method

  • Using the insertAdjacentHTML and insertAdjacentText methods

  • Rewriting documents with the innerHTML, innerText, outerHTML, and outerText properties

  • Creating new elements

  • Rewriting documents with text ranges

  • Moving elements using Netscape Navigator layers

  • Setting element visibility ...

Get Inside JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.