window.open() opens 2 windows.

M

MPH

Problem:
using a named window as target, a new window is opened anyway. Also, both
windows have the same name. This happens on SOME machines only

env:
XP sp2
ie6.0.2900.2180
+ sp2

Replicate with these two files, "test1.html"

<HTML><BODY>
<script>
function openit(){
var addlookup=open('about:blank','addlookup');
document.f1.target="addlookup";
document.f1.submit();
}
</script>

<form name=f1 action="test2.html" >
<input type=button onclick="openit();" value="open">
</form>

</BODY></HTML>

.... and "test2.html"

<HTML><BODY>
<script>
function showname(){
alert(self.name);
}
</script>
</HEAD>
<BODY>
Click this is to see window name <input type=button onclick="showname();">
</BODY>
</HTML>

--------

if you use
var addlookup=open('test2.html','addlookup');
then you can see the same name being used twice.

We've had this problem on a few machines here (about 3 out of 20), which all
appear to have identical explorer settings.
A few posts here seem to have the same problem but no follow ups have
helped.

Hope someone can help us.
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top