tamcole
01-26-2006, 10:28 PM
Me again - and thanks for previous advice. Here's the latest (and last, I hope).
I have a pop-up window which stays open and gets used for new images, called by links from the main page. I need it to come to the front of the main window when each time images load. It works fine on Safari, Explorer, Opera and Firefox for the Mac, but Explorer on the PC isn't working; it fails to even open the pop-up in the first place, let alone bring it to the front on a second visit.
Any solutions?
Heres the code I've used so far, found on a help-site:
function windowOpener(url, name, args) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,name,args);
} else {
if (!popupWin.closed){
popupWin.location.href = url;
} else {
popupWin = window.open(url, name,args);
}
}
popupWin.focus();
}
with
<a href="#" onClick=windowOpener("weblogo.html","images","toolbar=no,location=no,directories=no,status=no,menubar=noscrollbars=yes,resizable=yes,width=600,hei ght=400")>link to pop-up window</a>
I have a pop-up window which stays open and gets used for new images, called by links from the main page. I need it to come to the front of the main window when each time images load. It works fine on Safari, Explorer, Opera and Firefox for the Mac, but Explorer on the PC isn't working; it fails to even open the pop-up in the first place, let alone bring it to the front on a second visit.
Any solutions?
Heres the code I've used so far, found on a help-site:
function windowOpener(url, name, args) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,name,args);
} else {
if (!popupWin.closed){
popupWin.location.href = url;
} else {
popupWin = window.open(url, name,args);
}
}
popupWin.focus();
}
with
<a href="#" onClick=windowOpener("weblogo.html","images","toolbar=no,location=no,directories=no,status=no,menubar=noscrollbars=yes,resizable=yes,width=600,hei ght=400")>link to pop-up window</a>