Methods and Events of the IFRAME Element


Methods and Events of the <IFRAME> Element

Like the <FRAMESET> and <FRAME> elements, JavaScript's core HTML methods and events we covered in Chapter 6 apply to the <IFRAME> element as well. As with the <FRAME> element, this element has a few more events to add to the core set, which you see in Table 8.10 in overview and in Table 8.11 in depth. Note that although there is an onload event (ever since Internet Explorer 5.5), there is no onunload event. (The <IFRAME> element does not have any non-core methods.)

Table 8.10. Overview of the Events of the <IFRAME> Element (See Chapters 5 and 6 for the JavaScript core HTML properties, methods, and events that also apply to this element.)

Events

   

onafterupdate

onbeforeupdate

onerrorupdate

onload

   
Table 8.11. The Events of the <IFRAME> Element (See Chapters 5 and 6 for the JavaScript core HTML properties, methods, and events that also apply to this element.)

Event

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

onafterupdate

           

x

x

x

x

 

Occurs in an Internet Explorer data-bound object after updating data in the data source object. For more on data binding, see Chapter 17.

onbeforeupdate

           

x

x

x

x

 

Occurs in an Internet Explorer data-bound object before updating data in the data source object. For more on data binding, see Chapter 17.

onerrorupdate

           

x

x

x

x

 

Occurs in an Internet Explorer data-bound object when an error occurs while updating data in the data source object. For more on data binding, see Chapter 17.

onload

               

x

x

 

Occurs when the contents of the frame are fully loaded.

And that's it. In this and the previous chapters, we've taken a look at the properties, methods, and events of window object and frame elementsin the next chapter, we'll do the same for the document object and the <BODY> element.



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net