Hi,
I found one way for your requirement
in your parent.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script language ="javascript" >
function f1() {
var str = "";
if (document.getElementById("CheckBox1").checked) {
if (document.getElementsByTagName("label").item(0).getAttribute("for") == 'CheckBox1') {
str=str+document.getElementsByTagName("label").item(0).innerText;
}
}
if (document.getElementById("CheckBox2").checked) {
if (document.getElementsByTagName("label").item(1).getAttribute("for") == 'CheckBox2') {
str=str+" "+document.getElementsByTagName("label").item(1).innerText;
}
}
alert(str);
document.cookie = str;
var win=window.open("popup.html", "popupform",
"status = 1, height = 300, width = 300, resizable = 0")
}
</script>
</head>
<body>
<table width="50%">
<tr>
<td>
<input id="CheckBox1" type="checkbox" name="CheckBox1" />
</td>
<td>
<label id="sdt" for="CheckBox1">WordFile.doc</label>
</td>
</tr>
<tr>
<td>
<input id="CheckBox2" type="checkbox" name="CheckBox1" />
</td>
<td>
<label for="CheckBox2">PdfFile.pdf</label>
</td>
</tr>
<tr>
<td colspan="2">
<input type ="button" value ="show pop up" onclick="f1()" />
</td>
</tr>
</table>
</body>
</html>
And in your popup.html contains following code
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script language ="javascript" >
function f1() {
var str = document.cookie.split(';');
document.getElementById("resdiv").innerHTML = str[0];
}
</script>
</head>
<body onload="f1()">
Your selected File Names are : <div id="resdiv"></div>
</body>
</html>
Here I used only javascript
but it is not recommended
All the Best