FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Popup to main refresh

 


DanielXP
I have opened a popup using the following code.

Code:
<script type="text/javascript">
function poppin() {
window.open('staffpin.php','StaffPin','height=150,width=140,left=100,top=100,resizable=no,scrollbars=no,toolbar=no,status=no');
}
poppin();
</script>


Now once they have enter there pin and its correct it closes but before it closes i want the main page what include the code above (What opens the popup) to be refreshed.

Please can some one tell me how to do this.

Thanks,
Daniel
varun_dodla
If you can insert a JavaScript in the opened pop up page then you can do it by inserting the following line of JavaScript before closing the popup.

Code:

window.opener.location.replace("YourPage.html");

OR
Code:

window.opener.location.reload();
DanielXP
Thanks soooooooooo much!
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.