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


JAVASCRIPT TUTORIALS » Window » Window Object »

 

window.enableExternalCapture()















Syntax








window.enableExternalCapture(event)



The enableExternalCapture() method enables external event capturing.

You must first obtain UniversalBrowserWrite privileges.

Obtaining this privilege will send a security dialog box to the user.

You use the Window.captureEvents() method to specify the events you want to capture.

To remove the ability to capture these events, you can invoke the Window.disableExternalCapture() method.

The types of events that can be captured 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>
    <script language="JavaScript1.2">
    <!--
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
    window.enableExternalCapture();

    window.captureEvents(Event.SUBMIT);
    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» Window Object