父Html代码1.Html
<a onClick='window.open("1.php","Page","menubar=no, status=no, scrollbars=no, menubar=no, width=200, height=100");return false;'>
1.php代码:
echo '<script type="text/javascript">window.close();</script>';
必需:在"window.close();"关闭弹出窗口时,我需要从1.html发送ajax请求。我们该怎么做?
您可以在父窗口中调用任何JavaScript函数,就像在.php HTML:中一样
window.opener.functionNameOfTheOpenerWindow();
点击此处阅读更多信息http://www.w3schools.com/jsref/prop_win_opener.asp