I have opened a new window using window.open which performs as would be expected in both IE and Firefox, but when I then want to close the window using window.close, IE just throws an error message "Permission denied".
On further investigation I found that IE threw out this message with window.focus() and window.name even though this did not cause a problem in Firefox.
Any ideas would be very gratefully received.
Function is shown below for further information (NewWin being the url of the .pdf I wish to open):
Expand|Select|Wrap|Line Numbers
- function F_OpenPDFWindow(NewWin)
- {
- if(PDF_PopUp!=undefined)
- {
- PDF_PopUp.close();
- }
- var PageContent=NewWin;
- PDF_PopUp = window.open(PageContent, "pdfWindow","width=750,left=30,top=40,scrollbars");
- }