149Chapter 15 .Generic HTML Element Objects NN2 NN3

149Chapter 15 .Generic HTML Element Objects NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility The W3C standard states that you should use the titleproperty (and TITLE attribute) in an advisory role. The main browsers interpret that role as text assigned to tooltips that pop up momentarily while the cursor rests atop an element. The advantage of having this property available for writing is that your scripts can modify an element s tooltip text in response to other user interaction on the page. A tooltip can provide brief help about the behavior of icons or links on the page. It can also convey a summary of key facts from the destination of a link, thus enabling a visitor to see vital information without having to navigate to the other page. For example, Microsoft s Web authoring documentation online (http:// msdn.microsoft.com) uses the tooltips in listings of scriptable properties to display a list of elements for which the property is available. While this information also appears on the destination of the link for each property, you can see at a glance, for instance, which instance of the two listings for the same property name apply to the object in which you re interested. The browser governs tooltip font and color characteristics, which are not changeable via scripting. As with setting the status bar, I don t recommend using tooltips for conveying mission-critical information to the user. Not all users are patient enough to let the pointer pause for the tooltip to appear. On the other hand, a user may be more likely to notice a tooltip once it appears rather than a status bar message (even though the latter appears instantaneously). Example (with Listing 15-17) on the CD-ROM Related Item: window.status property. uniqueID Value: String Read-Only NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility You can let the IE5+/Windows browser generate an identifier (id property) for a dynamically generated element on the page with the aid of the uniqueID property. You should use this feature with care because the ID it generates at any given time may differ from the ID generated the next time the element is created in the page. Therefore, you should use the uniqueID property when your scripts require an unknown element to have an id property but the algorithms are not expecting any specific identifier. On the CD-ROM elementObject.uniqueID
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.

Leave a Reply