javascript + Ajax  跨页取值  同样alert 弹出不同值
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 = "";
     }
------解决方案--------------------
刚弹出的时候,另一个页面还没有加载完,无数据,加载完后面才有数据了
------解决方案--------------------window.parent.top.opener层次结构怎么这么复杂?
------解决方案--------------------用下同步請求試下