window.routeEvent() : Window Object « Window « JavaScript Tutorial






Syntax

window.routeEvent(event)

The routeEvent() method passes captured events through their normal event process.

The events that can be passed are as follows:

  1. Event.ABORT
  2. Event.BLUR
  3. Event.CHANGE
  4. Event.CLICK
  5. Event.DBLCLICK
  6. Event.DRAGDROP
  7. Event.ERROR
  8. Event.FOCUS
  9. Event.KEYDOWN
  10. Event.KEYPRESS
  11. Event.KEYUP
  12. Event.LOAD
  13. Event.MOUSEDOWN
  14. Event.MOUSEMOVE
  15. Event.MOUSEOUT
  16. Event.MOUSEOVER
  17. Event.MOUSEUP
  18. Event.MOVE
  19. Event.RESET
  20. Event.RESIZE
  21. Event.SELECT
  22. Event.SUBMIT
  23. Event.UNLOAD
<html>
    <head>
    <script language="JavaScript1.2">
    <!--
    var counter = 0;

    window.captureEvents(Event.CLICK);
    window.onclick = myClickHandler;

    function myClickHandler{
      window.document.myForm.myText.handleEvent;
    }

    function changeText(){
      document.myForm.myText.value = counter++;
    }

    function releaseClick(){
      window.routeEvent(Event.CLICK);
    }
    -->
    </script>
    </head>
    <body>
    <form name="myForm">
      <input type=TEXT size=2 value="" name="myText" onClick='changeText()'>
      <a href="http://www.java2s.com" onMouseDown='window.routeEvent(Event.CLICK)'>Click Here!</a>
    </form>
    </body>
    </html>








19.2.Window Object
19.2.1.Window
19.2.2.window.alert()
19.2.3.window.back()
19.2.4.window.captureEvents()
19.2.5.window.clearInterval()
19.2.6.window.clearTimeout()
19.2.7.window.defaultStatus
19.2.8.window.disableExternalCapture()
19.2.9.window.document
19.2.10.window.enableExternalCapture()
19.2.11.window.find()
19.2.12.window.focus()
19.2.13.window.forward()
19.2.14.window.frames
19.2.15.window.frames.length
19.2.16.window.home()
19.2.17.window.innerHeight
19.2.18.window.innerWidth
19.2.19.window.length
19.2.20.window.location
19.2.21.window.locationbar
19.2.22.window.menubar
19.2.23.window.moveBy()
19.2.24.window.moveTo()
19.2.25.window.name
19.2.26.window.onBlur
19.2.27.window.onDragDrop
19.2.28.window.onError
19.2.29.window.onFocus
19.2.30.window.onLoad
19.2.31.window.onMove
19.2.32.window.onResize
19.2.33.window.onUnLoad
19.2.34.window.open()
19.2.35.window.opener
19.2.36.window.outerHeight
19.2.37.window.outerWidth
19.2.38.window.pageXOffset
19.2.39.window.pageYOffset
19.2.40.window.parent
19.2.41.window.personalbar
19.2.42.window.print()
19.2.43.window.prompt()
19.2.44.window.releaseEvents()
19.2.45.window.resizeBy()
19.2.46.window.resizeTo()
19.2.47.window.routeEvent()
19.2.48.window.scroll()
19.2.49.window.scrollbars
19.2.50.window.scrollBy()
19.2.51.window.scrollTo()
19.2.52.window.self
19.2.53.window.setInterval()
19.2.54.window.setTimeout()
19.2.55.window.status
19.2.56.window.statusbar
19.2.57.window.stop()
19.2.58.window.toolbar
19.2.59.window.top