• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. The JavaScript Language: Loop... > Using the onerror Event Handler

Using the onerror Event Handler

The onerror event handler is built in to the window object. (As we saw in Chapter 1, the window object corresponds to the browser window itself, and it contains the document object.) Using the onerror event handler, you can specify a function the browser should call if there’s been an error in your code. This event handler appeared in the Netscape Navigator 3.0 and the Internet Explorer 4.0, as you see in Table 3.16.

Table 3.16. The onerror Event Handler
Event NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
onerror  x x x   x x x x



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint