My system uses popup windows to show data and stores their window handles in a array (openedWindows). On timeout, I loop through the array to close all of these windows, but I have trouble closing a window that contains a PDF.
In this section of code:
for ( var x = 0; x < openedWindows.length; x++ )
I get the error "Permission Denied" when reaching a window containing a PDF. Other windows (like an About... box) close just fine.
I need to find a way to close all of the popups in the array, including PDFs.