可以通过设置window.open里的参数限定它的位置,不让它每次都不同。
window.open("Sample.htm",null,
"Top=50,left=50,height=200,width=400,status=yes,toolbar=no,menubar=no,location=no")
window.open("Sample.htm",null,
"Top=50,left=50,height=200,width=400,status=yes,toolbar=no,menubar=no,location=no")
first.htmwidow.open("secend.htm","secend","status=yes,toolbar=yes,menubar=yes,loacation=yes")secend.htm<html>
<head>
function reLocationWindow(obj)
{
obj.moveTo(x,y);
}
</head>
<body onLoad="reLocationWindow(self)">
</body>
</html>