function OpenWin(url, e) {
        var selectedTr = null;
        window.open(url, null, "toolbar=no,scrollbars=yes,menubar=no, location=no, directories=no,width=680,height=550,top=300,left=300");---在另一也页面中通过  window.parent.top.opener.fm_add.txtUserAccount  的形式赋值的  //        alert(document.getElementById("txtUserAccount").value);--第一次空
//        alert(document.getElementById("txtUserAccount").value);--第二次显示正确值
        
        selectedTr = e.parentNode;
        SetMedia(selectedTr);
        document.getElementById("txtUserAccount").value = "";
        document.getElementById("txtUserName").value = "";
    }

解决方案 »

  1.   

    为什么我的文本框弹出一次后 随便弹出什么内容都可以。。 就能取到值了 如果 不弹出就不行 感觉Alert 好像有了什么操作才使得赋值成功。。
      

  2.   

    txtUserAccount  是 hidden控件  是不是 值没显示出来 取出来的时候会有问题呢 ,知道的朋友请帮帮忙啊。。谢谢~\(≧▽≦)/~啦啦啦
      

  3.   

    window.parent.top.opener层次结构怎么这么复杂?