关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

lhg在弹出窗口里获得父窗口的值

发布时间:2019-11-22 14:50:41

lhg在弹出窗口里获得父窗口的值代码,注意这个是在弹出的文件里写

<script type="text/javascript">

var api = frameElement.api, W = api.opener;

window.onload = function()

{

//alert(W.document.getElementById('txt1').value);

    document.getElementById('itxt').value = W.document.getElementById('txt1').value;

};

 </script>



/template/Home/Zkeys/PC/Static