Chapter 6. Using Core HTML Methods and Events

Using Core HTML Methods and Events

In the preceding chapter, we saw Java Script’s core HTML properties; in this chapter, we’ll take a look at JavaScript’s core HTML methods and events. You can find JavaScript’s core HTML methods and events in Table 6.1, and we’ll cover them all in this chapter.


Note the capitalization in Table 6.1; methods use the Java capitalization scheme—for instance, removeChild—but events are all in lower case, such as onmousemove. Some books use the Java capitalization scheme for events too, such as onMouseMove, but that’s incorrect; it’s really onmousemove and because capitalization counts in JavaScript, using ...

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.