- <!-- mere.html -->
- <html>
- <head>
- </head>
- <script>
- var w;
- function ecrire()
- {
- w.document.getElementById("allo").innerHTML = "ecrit par mere1";
- }
- </script>
- <body onUnload="w.changelocation();">
- <a href="#" onClick='w=window.open("popup.html","pop1","width=200,height=200,status=1, resizable=1");'>ouvrir fene</a>
- <a href="mere2.html">mere2</a>
- </body>
- </html>
-
-
- <!-- mere2.html -->
- <html>
- <head>
- <script>
- var w;
- function ecrire()
- {
- w.document.getElementById("allo").innerHTML = "ecrit par mere2";
- }
- </script>
- </head>
-
- <body onUnload="w.changelocation();">
- <a href="mere.html">dsds</a>
- </body>
- </html>
-
-
- <!-- popup.html -->
- <html>
- <head>
- </head>
- <script>
-
- function changelocation()
- {
- setTimeout("opener.w = window.self;opener.ecrire();",1)
- }
- </script>
- <body>
- YEEEEEEEEEEEEEEEEEEEHAAAAAAAAWWWWWWWWWWWWWWw
- <div id="allo"></div>
- </body>
- </html>
<!-- mere.html -->
<html>
<head>
</head>
<script>
var w;
function ecrire()
{
w.document.getElementById("allo").innerHTML = "ecrit par mere1";
}
</script>
<body onUnload="w.changelocation();">
<a href="#" onClick='w=window.open("popup.html","pop1","width=200,height=200,status=1, resizable=1");'>ouvrir fene</a>
<a href="mere2.html">mere2</a>
</body>
</html>
<!-- mere2.html -->
<html>
<head>
<script>
var w;
function ecrire()
{
w.document.getElementById("allo").innerHTML = "ecrit par mere2";
}
</script>
</head>
<body onUnload="w.changelocation();">
<a href="mere.html">dsds</a>
</body>
</html>
<!-- popup.html -->
<html>
<head>
</head>
<script>
function changelocation()
{
setTimeout("opener.w = window.self;opener.ecrire();",1)
}
</script>
<body>
YEEEEEEEEEEEEEEEEEEEHAAAAAAAAWWWWWWWWWWWWWWw
<div id="allo"></div>
</body>
</html>