The Events of the BODY Element


The Events of the <BODY> Element

You can see the events of the <BODY> element in Table 9.13 in overview and in Table 9.14 in depth. Note that JavaScript's core HTML properties, methods , and events, covered in Chapters 5 and 6, also apply to this element.

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

Events

   

onAfterPrint

onBeforePrint

onScroll

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

Event

         

onafterprint

   

x

x

x

 

Occurs immediately after a document prints or previews for printing. See "Printing" in Chapter 8.

onbeforeprint

   

x

x

x

 

Occurs immediately before a document prints or previews for printing. See "Printing" in Chapter 8.

onscroll

 

x

x

x

x

 

Occurs when the user repositions the scroll box (the "thumb") in the scrollbar.

And that completes our discussion of the document object and the <BODY> element/ body object in this chapter. In the next chapter, we'll take a look at using the navigator , location , and history objects.



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