Hi, there, here's the requirement:
Upon page loading, if certain condition is true, pop up a window with details, provide a link on the popup window that says "remind me in 5 minutes", when clicking on the link, the popup window should disappear and pop back up in 5 mintues. I am using setTimeout for the delay, however it only works when you stay on the original parent page, if you navigate to aother page, the popup won't come back. The following is the function called when the link is clicked on:
function popBack(delay, spec) {
var popupUrl = window.location;
window.close();
window.opener.setTimeout("window.open('" + popupUrl + "', 'popWindow', '" + spec + "')", delay);
}
Any help is truly appreciated. Thanks.