...

View Full Version : Popup refresh quickie



icklechurch
06-19-2009, 10:31 AM
Hi,

I have a pop-up window that I want to auto refresh the parent page when it is shut.

At the moment I am using the code below to do this if the user clicks a 'close window' link in the popup. BUT is there a way to auto refresh the parent page if the user just clicks the red cross at the top right of the popup?

<script>
function closePopup(){
window.opener.location.href = window.opener.location.href;
window.opener.focus();
window.close();
}
</script>

Philip M
06-19-2009, 11:45 AM
Nope. Nor can you stop the user closing the window with Ctrl-W.



A child of five would understand this. Send someone to fetch a child of five. - Groucho Marx



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum