document.routeEvent()

JavaScript1.2+ Nav4+ Syntax

document.routeEvent(event)

Description

The routeEvent() method of the Document object passes all previously captured events of the event type passed through their normal event processes. The events that can be passed are as follows:

  • Event.ABORT

  • Event.BLUR

  • Event.CHANGE

  • Event.CLICK

  • Event.DBLCLICK

  • Event.DRAGDROP

  • Event.ERROR

  • Event.FOCUS

  • Event.KEYDOWN

  • Event.KEYPRESS

  • Event.KEYUP

  • Event.LOAD

  • Event.MOUSEDOWN

  • Event.MOUSEMOVE

  • Event.MOUSEOUT

  • Event.MOUSEOVER

  • Event.MOUSEUP

  • Event.MOVE

  • Event.RESET

  • Event.RESIZE

  • Event.SELECT

  • Event.SUBMIT

  • Event.UNLOAD

After one of these events has been captured using the Document.captureEvents() method, you can define a function to replace the built-in ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.