it's not possible.
You need to use HTML/javascript to do that since it's client side.
Have a play with this - it's fairly self explanatory:
<script language="JavaScript">
<!--
function launch(newURL, newName, newFeatures, orgName) {
var remote = open(newURL, newName, newFeatures);
if (remote.opener == null)
remote.opener = window;
remote.opener.name = orgName;
return remote;
}
function launchRemote() {
myRemote = launch("instructions.html",
"instructions",
"height=340,width=200,alwaysLowered=0,top=370,left=800,alwaysRaised=1,channelmode=0,dependent=0,directories=0,fullscreen=0,screenx=0,screeny=0,hotkeys=1,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,z-lock=0",
"myWindow");
}
launchRemote();
// -->
</script>