Chapter 6. Using Core HTML Methods and EventsIn 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. Tip Note the capitalization in Table 6.1; methods use the Java capitalization schemefor 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 onMouseMove won't work. Table 6.1. Core Methods and Events of HTML Elements
Like the preceding chapter, this chapter is intended partly for reference; to cover all of JavaScript's core HTML methods and events, we'll occasionally need to cover some topics that we haven't discussed yet and which are coming up in later chapters, such as style sheets or Dynamic HTML. As in the preceding chapter, that won't be a problem for the most part, but feel free to skip that material until you need it when dealing with the programming in later chapters. |