window.enableExternalCapture()

JavaScript1.2+ Nav4+ Syntax

							window.enableExternalCapture(event)

Description

The enableExternalCapture() method of the Window object enables external event capturing of the event that is passed to the method. This method provides the capturing of events in frames loaded from a different server. Before you can enable the capturing of these external events, you must first obtain UniversalBrowserWrite privileges. Obtaining this privilege will send a security dialog box to the user to decide whether or not to accept the request. This dialog box is like the one in Figure 7.18.

Figure 7.18. The security dialog box that is displayed when a script asks for UniversalBrowserWrite privileges.

Once obtained and the ...

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.