View Full Version : how to capture events from window with external content?

07-24-2009, 10:41 PM
Hi, I know that it might be not possible to control the window properties if the content in the window is external (from another server). But I've read about this enableExternalCapture() property, which is supposed to enable capturing of events in the windows with external content. Unfortunately, I couldn't found a single example for this and my own efforts are unsuccessful. In the code below I'm opening a new window with google.com and I'm trying to detect when this window is resized. This way it doesn't work, so, I'll appreciate any help. Is it possible at all? THANKS!!! (I'm using Firefox 3.0.12.)

<script type="text/javascript">
var win1
function window_open() {

win1.onresize = window_resized;
function window_resized() {
alert("new window is resized!");


<a href="javascript:window_open()">open new window</a>