js弹出子窗口更新父窗口
1.父窗口打开子窗口
window.open( 'InsertTag.aspx','_blank','width=300,height=500,toolbars=yes,resizable=yes,scrollbars=yes,left='+leftVal+',top='+topVal);return false"
2.子窗口更新父窗口
<script language="javascript" type="text/javascript">
function InsertTag(tagname)
{
if(window.opener.document.getElementById("Editor_Edit_Advanced_txbTag").value == '')
{
window.opener.document.getElementById("Editor_Edit_Advanced_txbTag").value += tagname;
}
else
{
window.opener.document.getElementById("Editor_Edit_Advanced_txbTag").value += "," + tagname;
}
}
</script>
3.刷新父
if(window.opener)window.opener.location.reload();
4.关闭子窗口
window.close();