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


JAVASCRIPT TUTORIALS » Window » Window Object »

 

window.disableExternalCapture()











Syntax








window.disableExternalCapture()



The disableExternalCapture() method disables any external event capturing set up using the enableExternalCapture() method.

Before capturing of these external events, you must first obtain UniversalBrowserWrite privileges.

Once obtained and the method has been invoked, you use the Window.captureEvents() method to specify the events you wish to capture.












<html>
    <head>
    <script language="JavaScript1.2">
    <!--
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
    window.enableExternalCapture();

    window.captureEvents(Event.SUBMIT);

    function turnOffEvents(){
      window.disableExternalCapture();
      alert("You have sucessfully turned off external event captures");
    }
    -->
    </script>
    </head>
    <body>
    <form>
      <input type=BUTTON value="Disenable External Capturing" onClick="turnOffEvents()">
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» Window Object