The <FRAMESET> ElementI'll take a look at the <FRAMESET> element from the JavaScript point of view here. As with the other HTML elements we'll see, JavaScript's core HTML properties, methods , and events (covered throughout Chapters 5 and 6) apply to this element. Besides those core HTML properties, the <FRAMESET> element supports the JavaScript properties you see in overview in Table 7.4 and covered in depth in Table 7.5. We'll see methods and events for this element in the next chapter. Table 7.4. Overview of the Properties of the <FRAMESET> Element (See Chapter 5 and 6 for the JavaScript core HTML properties, methods, and events that also apply to this element.)
Table 7.5. The Properties of the <FRAMESET> Element (See Chapter 5 and 6 for the JavaScript core HTML properties, methods, and events that also apply to this element.)
Tip Plenty of the JavaScript properties we'll see in this book, such as the <FRAMESET> object's borderColor property, correspond to HTML attributes used to set the colors displayed in a browser. You assign these properties colors that the browser can recognize (using the same values you would assign to HTML color attributes)that is, a hexadecimal color triplet or a predefined color. Here are some examplesthe hexadecimal color triplet "ff0000" is pure red, "ffffff" is bright white, "000000" is black, "00ff00" is bright green, and "808080" is gray. The red, green, and blue values here, rr , gg , and bb (each of which can go from 00 to ff in hexadecimal) are assembled into a color triplet: rrggbb . You also can use predefined colors (which differ by browser) such as "red," "yellow," "blue," or "pink". Note the power you have in Table 7.5using the cols and rows properties of <FRAMESET> objects in JavaScript, you can modify the COLS and ROWS attributes of <FRAMESET> elements, changing your frame layout on-the-fly . |