document.iframe1.document.form2.ipt2.value = document.form1.int1.value

解决方案 »

  1.   

    没有成功,不过我的iframe的中的文件来自于另外一个文件,如:
    ===============
    <IFRAME name=NewFrame src="FM_NewForm" frameBorder=0 width=100% scrolling=no height=496></IFRAME>
    ===============
    并且NewFrame在一个<div></div>之间,这有没有关系呀?
      

  2.   

    出现的错误是:
    document.NewFrame.document.FM_NewForm为空或者不是对象;我仿照你写法,语句如下:
    document.NewFrame.document.FM_NewForm.iptTcmid.value = tcmid;tcmid为一个字符串变量;
      

  3.   

    document.iframe1.contentWindow.document.form2.ipt2.value=document.form1.int1.value