Okay, many thanks for your help. I finally got the value of the lable inside of the span tag. However, when I try to send the backup from the popup child window back to the parent window, it's not working. Here's the view source code.
<html xmlns="
>
<head><title>
Photo Attachment
</title>
<script language="javascript" type="text/javascript">
function sendInfo()
{
var lblFileOne = document.getElementById('lblAttach1').innerHTML;
if(window.opener && !window.opener.closed)
{
alert("Document lable 1: " + document.getElementById('lable1').innerHTML)
window.opener.document.getElementById('lblFile1').innerHTML = lblFileOne;
window.close();
}
}
</script>
</head>
<body>
<form name="frmAttachFile" method="post" action="fileAttach.aspx" id="frmAttachFile" enctype="multipart/form-data">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTY3NTU4OTgwMw9kFgICAw8WAh4HZW5jdHlwZQUTbXVsdGlwYXJ0L2Zvcm0tZGF0YRYEAgcPDxYCHgRUZXh0BQ9maXJlZmlnaHRlci5qcGdkZAINDw8WAh4HRW5hYmxlZGhkZGQ/W9JkFAnYalxyBFYXuL9lvtZIpw==" />
</div>
<table border="0" cellpadding="0" cellspacing="0" style="width: 325px">
<tr>
<td colspan="3" style="height: 14px">
Attach your photos:</td>
</tr>
<tr>
<td colspan="2">
<input type="file" name="fulAttach1" id="fulAttach1" /></td>
<td style="width: 100px">
Attachment 1</td>
</tr>
<tr>
<td colspan="2">
<input type="file" name="fulAttach2" id="fulAttach2" /></td>
<td style="width: 100px">
Attachment 2</td>
</tr>
<tr>
<td colspan="2">
<input type="file" name="fulAttach3" id="fulAttach3" /></td>
<td style="width: 100px">
Attachment 3</td>
</tr>
<tr>
<td colspan="2">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<span id="lable1" style="color:MidnightBlue;font-weight:bold;">firefighter.jpg</span>
</td>
<td style="width: 100px" valign="top">
Files uploaded</td>
</tr>
<tr>
<td style="width: 51px">
<input type="submit" name="btnSubmit" value="Submit" id="btnSubmit" disabled="disabled" /></td>
<td style="width: 108px;">
<input type="submit" name="btnClose" value="Close" onclick="sendInfo();" id="btnClose" /></td>
<td style="width: 100px">
</td>
</tr>
</table>
<div>
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAwLxuK7DBwLCi9reAwKT+PmaCOTrK7S3qna9pWd0YqKlIMFMHs8p" />
</div></form>
</body>
</html>
The alert does work but it does at window.opener line.