Is it possible for popups that have already been opened to be brought to the front again rather than new instances being created each time the link is clicked?
Depends what you mean by 'popup'. Presumably you mean with javascript. The answer is yes, simply reference the window and focus() it.
Create a function that opens the new window, first checking whether the window already exists and you are able to call focus(). If the window's already open, focus it, else open the new window. Something like the following should work:
Code:
function openWindow() {
if (typeof(newWindow) !== 'undefined' && window.focus) {
newWindow.focus();
} else {
newWindow = window.open(whatever);
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.