Burkhard: window close

Beitrag lesen

hallo Franz

function remote2(url){
f1.location=url;

hier liegt der Hund begraben:
creator.location=url;
hier legen wir fest, das in dem creatorFenster, die neue Seite geladen werden soll!
also es gibt 3 seiten!
start.htm:
<html>
<head>
<title>aufmachen</title>

<SCRIPT LANGUAGE="JavaScript">

function remote(){
win2=window.open("side.htm","SITE","width=860,height=470,scrollbars=0, resizable=0,status=0,")
win2.creator = self
}
</script>

</head>

<body bgcolor="#FFFFFF">
<a href="javascript:remote();">mach auf!</a>
</body>
</html>
side.htm:
<html>
<head>
<title>xxx</title>

<SCRIPT LANGUAGE="JavaScript">
<!--
function remote2(url){
creator.location=url
}
 function zu(){
win2=window.close()
}

//-->
</script>
</head>

<body bgcolor="#FFFFFF">
<a href="javascript:remote2('2.htm');zu();">testlink</a>
</body>
</html>
und die seite 2.htm
das wars gewesen!
Gruß Burkhard