window.routeEvent() : Window Object : Window JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Window » Window Object »

 

window.routeEvent()











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=value="" name="myText" onClick='changeText()'>
      <a href="http://www.navioo.com" onMouseDown='window.routeEvent(Event.CLICK)'>Click Here!</a>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» Window Object