B
Balaji
I have a requirement to close the popup which has a pdf.I am not able
to get the handle for the window after it has opened a pdf.
I would like to get the handle and close it. Is there a way to do that.
I do not want a solution using iframe / frames
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="javascript">
<!--
var WinHandle;
function openpopup() {
WinHandle=window.open('1.pdf');
}
function ClosePoup(){
WinHandle.close();
}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000"
onUnload="javascript:ClosePoup();">
<a href="javascriptpenpopup();">Open Popup</a>
</body>
</html>
to get the handle for the window after it has opened a pdf.
I would like to get the handle and close it. Is there a way to do that.
I do not want a solution using iframe / frames
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="javascript">
<!--
var WinHandle;
function openpopup() {
WinHandle=window.open('1.pdf');
}
function ClosePoup(){
WinHandle.close();
}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000"
onUnload="javascript:ClosePoup();">
<a href="javascriptpenpopup();">Open Popup</a>
</body>
</html>