Previous | Next | (P-PDF) JavaScript
Topic: window.close from pdf to browser window?
Conf: (P-PDF) JavaScript, Msg: 75123
From: ogre
Date: 10/26/2002 06:44 AM
Saw your dilemma about trying window.close on a pdf in IE and I had encountered this problem as well. Don?t know if you got an answer but here is what worked for me. I simply called window.open on the window again to any old html page and then of course you can close it as usual. Here is a little snippet. Pretty cheesy but so is the bug ;)
function pdfClose(){
pdfWin=window.open("http://www.google.com" , "Image", "height=600,width=800,scrollbars=yes,resizable=yes");
pdfWin.close();
}
Hope it helps?