解决方案 »

  1.   

    parent.frames[1].document.ctrlForm.myName.value=document.form1.name1.value;这句代码有问题,仔细查看
      

  2.   

            parent.parent.ctrlFrm.document.getElementsByName('myName')[0].value = document.form1.name1.value; 
      

  3.   

    框架之间的引用有问题
    <!--page1.html-->
    <html>
    <head>
    <title>第一步:填写姓名</title>
    <script type="text/javascript">
    <!--
    function process1()
    {           
                window.parent.frames[1].document.getElementById("test").value = document.form1.name1.value;
                 window.location="./page2.html"
    }
    //-->
    </script>
    </head>
    <body>
    <form name="form1" action="">
    请输入姓名:<input name="name1"><p>
    <input type="button" value="下一步" onclick="process1()">
    </form>
    </body>
    </html><!--control.html-->
    <html>
    <body>
    <form name="ctrlForm" action="http://www.nonexist.com/process.asp" target="_top" >
    <input id="test" name="myName" type="hidden">
    </form>
    </body>
    </html>
      

  4.   

    肯定是这句代码出错了我是说当去掉parent.frames[1].document.ctrlForm.myName.value=document.form1.name1.value;时,你在浏览器上按F12,查看Console,肯定提示脚本出错