1,可以,具体要看你的页面关系
2.
<FRAMESET ROWS="," COLS=",">
<FRAME SRC="top.asp" NAME="topframe">
<FRAME SRC="main.asp" NAME="mainframe">
</FRAMESET>top.frames("mainframe").document.all.label1.innerHTML = document.all.labelb.innerHTML

解决方案 »

  1.   

    1. 你没有说明这两个页面之间的关系(是在同一框架里还是A window.open B)?
    2. A: button 点击:
    document.getElementById("LabelID").innerText = parent.下框架name.document.getElementById("LabelID").innerText
      

  2.   

    第一个问题:
    b.htm<script language=javascript>
    document.write ("<label id=test>"+document.cookie+"</label>");
    document.write ("<br>上面的lable是前一页面的内容");
    </script>a.htm
    <script>
    function setValue()
    {
    document.cookie = document.getElementById("lab").innerText;
    window.location.href = "b.htm";
    }
    </script>
    <label id="lab">this label</label>
    <button onclick="setValue()">go to b.htm</button>
      

  3.   

    第二个问题:
    <button onclick="parent.framename.getElementById('yourlabelid').innerText = document.getElementById('yourwantcopylabelid').innerText">copy label</button>
      

  4.   

    不知为什么,当我写到parent.框架名..时后面没有了提示了,在VS.NET中没有提示就是同错了.如果用top.frames("框架名").时后也是没有提示了.即出错.
      

  5.   

    top.frames['框架名'].document.formName.textName.value   注意:书写要规范!
      

  6.   

    我用的是vs.net,如果有这种属性或方法它会自动出提示的,所以可以排除书写错误的可能,但是不知为什么....
    还请楼上的高手帮助...
      

  7.   

    必须用框架
    在A.ASPX里按纽单击事件里写下:
    document.getElementById("LabelID").innerText = parent.下框架name.document.getElementById("LabelID").innerText