请问:
我在 C 页面 用window.open 出一个 D 页面, D页面用iframe包含了 A与B页面请问我现在在B页面中 如何用js 将B页面中输入框的值传递给 C 页面 ???window.opener.window.parent 获取不到C页面的对象!! 

解决方案 »

  1.   

    试试。。
    window.opener.parent.document.getElementById('')
      

  2.   

    B:
    var _value = $(text).value;
    window.parent.window.sendValue(_value);D:
    function sendValue(v){
        window.opener.window.txt = v;
        window.opener.window.show();
    }C:
    var txt;
    function show(){
        alert(txt);
    }
      

  3.   

    如果中间不需要操作,那么:B:
    window.parent.window.opener.window.txt = 'aaa';
    window.parent.window.opener.window.show();C:
    var txt;
    function show(){
    alert(txt);
    }