Link to home
Start Free TrialLog in
Avatar of PerlChaser
PerlChaser

asked on

Close a Window -- Permission Denied?

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++ )
            openedWindows[x].close();
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.

~PerlChaser~
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial