onclick="this.value=window.iframeName.document.all.kt.value"

解决方案 »

  1.   

    window.frames["iframeName"].document.formName.elements["inputName"].value
      

  2.   

    加一个id ,<iframe id="oIframe" name="oIframe" src="b.html"></iframe>通过 iframe 对象所在页面的对象模型,你可以访问 iframe 对象的属性,但不能访问其内容。例如,访问 iframe 对象的 border 样式的语法应为:sBordervalue = document.all.oFrame.style.border;当然你也可以用window.document.all.test.document.documentElement.outerHTML
    得到html.然后用查找的方法得到你要的信息.但你不可以修改.
      

  3.   

    onclick="alert(window.frames[0].document.all.kt.value);"