关于JS替另一个页面文本框

关于JS为另一个页面文本框
这是第一个页面:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
        function imgSrc(){
window.location.href="VideoDemo.html"

}
        
    </script>
</head>

<body>

<form>
<input type = "text" id="pic_src" /></br>
<input type ="button" value="拍照" onclick="imgSrc()">
</form>
</body>
</html>


这是第二个页面:
function   Take_pic(url) 
       {
        var filepath = "E:\\PhotoTest\\3\\2" 
        VIDEOCAP.CreatePicDir(filepath);
        VIDEOCAP.SetFilePath(filepath);
                VIDEOCAP.Take_Pic(75, 0, 2, jiupian);
                var filefullname = VIDEOCAP.GetTakePicFullName();//获得文件全名(路径 + 文件名)
               alert(filefullname);


我现在想将第二个页面的filefullname 字符串返回到第一个页面的文本框里!!!急!!!
------解决方案--------------------
// window.location.href="VideoDemo.html"
window.open("VideoDemo.html")


改成window.open,直接跳转过去这个页面都卸载了


function   Take_pic(url) 
       {
               var filepath = "E:\\PhotoTest\\3\\2" 
               VIDEOCAP.CreatePicDir(filepath);
               VIDEOCAP.SetFilePath(filepath);                       
                VIDEOCAP.Take_Pic(75, 0, 2, jiupian);       
                var filefullname = VIDEOCAP.GetTakePicFullName();//获得文件全名(路径 + 文件名)
               alert(filefullname);
opener.document.getElementById('pic_src').value=filefullname
}