efx
09-10-2004, 11:08 PM
Hello everyone, first time poster here.
I'll get right to it. I have this little page that has five links to it. When you click on a link it opens the page corresponding to the link in a little popup window. When you click on another link the script checks if a popup has already been opened and if so, it uses the already opened window.
The script works just fine in firefox but I get an error in IE, the "The remote server machine does not exist" error.
Here is the code.
<script>
var winpops = null;
function openpopup(url){
if(!winpops) {
winpops=window.open(url,"","width=100,height=110,");
} else {
winpops.location = url;
winpops.focus();
}
}
</script>
I'm very new at this so if anyone can tell me what's wrong with this I'd be most appreciative.
Thank you in advance:
Viktor
I'll get right to it. I have this little page that has five links to it. When you click on a link it opens the page corresponding to the link in a little popup window. When you click on another link the script checks if a popup has already been opened and if so, it uses the already opened window.
The script works just fine in firefox but I get an error in IE, the "The remote server machine does not exist" error.
Here is the code.
<script>
var winpops = null;
function openpopup(url){
if(!winpops) {
winpops=window.open(url,"","width=100,height=110,");
} else {
winpops.location = url;
winpops.focus();
}
}
</script>
I'm very new at this so if anyone can tell me what's wrong with this I'd be most appreciative.
Thank you in advance:
Viktor