The uniqueID PropertyIn the Internet Explorer, you can create unique ID values to assign to elements using the uniqueID property, and that can be useful when you're creating new elements (as discussed in Chapter 16). You can find the support for this property in Table 5.60. Table 5.60. The uniqueID Property
Here's an example that creates a new ID for a header and displays that ID (typically, unique IDs are values, such as "ms__id18" and so forth): <HTML> <HEAD> <TITLE> Using the uniqueID Property </TITLE> </HEAD> <BODY> <H1 ID="Header">Using the uniqueID Property</H1> <SCRIPT LANGUAGE = "JavaScript"> <!-- alert(Header.uniqueID) // --> </SCRIPT> </BODY> </HTML> And that's itwe've covered the core HTML properties. As you can see, there's a tremendous amount of JavaScript power here; and when working in future chapters, you'll be able to find the definition of any property marked as "core" in this chapter. Let's push aheadin the next chapter, I'll take a look at the core HTML methods and events. |