O'Reilly logo

Inside JavaScript by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required