test.htm<iframe src="in.htm" name="in"></iframe>
<input type="button" value="get"
onclick="alert(top.frames['in'].document.all.txt1.value)">
in.htm<input type="text" name="txt1" value="灰豆宝宝.net">

解决方案 »

  1.   

    我的代码是这样的,为什么不行啊?test.htm<iframe src="in.htm" name="in"></iframe>
    <input type="button" value="get"
    onclick="alert(top.frames['in'].document.all.txt1.value)">in.htm<input type="text" name="txt1" value="灰豆宝宝.net">in.htm表单提交给insave.asp,
    在insave.asp中有
    response.write "<input name=filename type=""text"" size=""45"" value="""&Msg&""" readonly>
    怎么在test.htm取insave.asp中filename的值?
      

  2.   

    top.frames['in'].document.all.filename.value
      

  3.   

    window.frames['in'].document.all.filename.value