Ref:
Pass value from parent window to child popup window using JavaScript
I have edited the Parent page javaScript and rest of the code remain same.
<script type="text/javascript">
// var popup;
// window.onload = function () {
// popup = window.open("Popup.htm", "Popup", "width=300,height=100");
// };
function SendToPopup() {
var popup;
popup = window.open("Popup.htm", "Popup", "width=300,height=100");
var lblFirstName = popup.document.getElementById("lblFirstName");
var lblLastName = popup.document.getElementById("lblLastName");
lblFirstName.innerHTML = document.getElementById("txtFirstName").value;
lblLastName.innerHTML = document.getElementById("txtLastName").value;
popup.focus();
}
</script>