Web hosting e commerce - 356Part IIIDocument Objects ReferenceListing 15-45(continued) function normalText() {

356Part IIIDocument Objects ReferenceListing 15-45(continued)

onpropertychange Event Handler



This is a sample paragraph.

Text: Normal Short
Color: Black Red

Related Items:styleproperty; setAttribute()method. onreadystatechangeCompatibility:WinIE4+, MacIE4+, NN-, Moz-, Safari- The onreadystatechangeevent handler fires whenever the ready state of an object changes. See details about these states in the discussion of the readyStateproperty earlier in thischapter (and notice the limits for IE4). The change of state does not guarantee that an objectis, in fact, ready for script statements to access its properties. Always check the readyStateproperty of the object in any script that the onreadystatechangeevent handler invokes. This event fires for objects that are capable of loading data: applet, document, frame, frameset, iframe, img, link, object, script, and XML objects. The event doesn t fire forother types of objects unless a Microsoft DHTML behavior is associated with the object. Theonreadystatechangeevent does not bubble, nor can you cancel it. elementObject.onpropertychange