View Full Version : Popup refresh quickie

06-19-2009, 10:31 AM

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?

function closePopup(){
window.opener.location.href = window.opener.location.href;

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