i am using Facebook connect to log in with Facebook. That is working fine but i am using that in a popup window after the log in is completed the popup window should be closed and the main page should be reloaded but it is not happening. i have used this script to open the popup window
<script type="text/javascript">
function setPopUp(){
window.open("sign-in.php?fbLogin=1", "loginWindow", "location=1,status=1,scrollbars=1, width=400,height=400");
}
</script>
and this script to to close the window in header page and in sign in page
<script type="text/javascript">
window.location.close;
window.opener.top.location.reload();
</script>
please any one help me to do this
I use just:
<script type="text/javascript">
opener.location.reload();
window.close();
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.