S
Socrates
Hi - Have tried for half and hour to get this script to work:
I am trying to close the parent window while opening a centred new
child window
I would be grateful if someone could correct the script below which
does open a new window, but not in a centred position.
Here is the link to the url:
www.amw1.com/ebay/newwindow.html
Here is the script I am using;
<head>
<title>new window</title>
<script language="JavaScript">
<!--Begin
window.onload = function() {
x=(screen.availWidth - w)/2;
y=(screen.availHeight - h)/2;
var
choose=window.open('http://www.sherlockholmesmuseum.com...p='+x+',left='+y+',screenY=200,screenX=100');
}
// End -->
</script>
</head>
<body
onload="window.opener=top;window.open('http://www.sherlockholmesmuseum.com...ation=no,toolbar=no,menubar=no');window.close()">
</body>
I am trying to close the parent window while opening a centred new
child window
I would be grateful if someone could correct the script below which
does open a new window, but not in a centred position.
Here is the link to the url:
www.amw1.com/ebay/newwindow.html
Here is the script I am using;
<head>
<title>new window</title>
<script language="JavaScript">
<!--Begin
window.onload = function() {
x=(screen.availWidth - w)/2;
y=(screen.availHeight - h)/2;
var
choose=window.open('http://www.sherlockholmesmuseum.com...p='+x+',left='+y+',screenY=200,screenX=100');
}
// End -->
</script>
</head>
<body
onload="window.opener=top;window.open('http://www.sherlockholmesmuseum.com...ation=no,toolbar=no,menubar=no');window.close()">
</body>