页面部分
php处理部分
window.open打开的子窗口也可以用window.opener.func()调用父窗口函数实现相互调用
<form id="vote_form" name="vote_form" action="vote.creating.php" method="post" target="vote_frame"></form>
<script>
function bb(v_id,v_owner){
Alert({msg:"<div style='font-size:13px;'>投票发起成功!</div>",title:'提示',flg:10,enter:function(){self.location='vote.my.php'}});
$("#btn_submit_vote").attr("value","发布投票");
$("#btn_submit_vote").removeAttr("disabled");
}
</script>
<iframe id="vote_frame" name="vote_frame" style="display:none" src="test.htm"></iframe>
php处理部分
echo '<script>window.parent.bb('a','b')</script>';
window.open打开的子窗口也可以用window.opener.func()调用父窗口函数实现相互调用