clarkmurray
IS-IT--Management
I need to either open a second window or reload the 2nd window if it is already open, so I'm using the code:
function openmovie(url) {
if (!moviewin.open) {
moviewin = window.open("Window_2.htm",url,""
;
moviewin.focus();
}
else {
moviewin.window.name = url;
moviewin.location.reload();
moviewin.focus();
}
}
This works just fine the first time the 2nd window is opened and if the 2nd window stays open. However, if the user closes the 2nd window, the next attempt at opening the window produces the error (in IE6) "The remote machince server does not exist or is unavailable".
Can someone tell me how to fix this?
function openmovie(url) {
if (!moviewin.open) {
moviewin = window.open("Window_2.htm",url,""
moviewin.focus();
}
else {
moviewin.window.name = url;
moviewin.location.reload();
moviewin.focus();
}
}
This works just fine the first time the 2nd window is opened and if the 2nd window stays open. However, if the user closes the 2nd window, the next attempt at opening the window produces the error (in IE6) "The remote machince server does not exist or is unavailable".
Can someone tell me how to fix this?