子页向父页传值示例


复制代码 代码如下:

<script type="text/javascript">
function getValue() {
var ofrm2 = document.getElementById("TextBox1").value;
parent.document.getElementById("txbOpID").value = ofrm2
alert("ie取值结果为:" + ofrm2);

}

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3