H
Hugo
Hi all,
Well I don't know if it's possible, but I would like to able to read
the content of a html file that I've opened in a new window, but do
this from the parent html file.
I think that maybe this isn't at all possible. But if anybody as an
idea it would be great.
The code is bellow
thx
Hugo
Parent page:
------------
<html>
<head>
<title>Test</title>
<script language="JavaScript1.2" type="text/javascript">
<!--
var myWindow;
function detect(){
myWindow = window.open("http://localhost/webapp1/status.html",
"Status");
alert(myWindow.document.forms[0].hidden_status);
myWindow.document.close() ;
}
//-->
</script>
</head>
<body>
<form>
<input type="button" VALUE=" Test Server" ONCLICK="detect();">
</form>
</body>
</html>
Child file:
----------
<html>
<head>
<title>Server</title>
</head>
<body>
<form name="my_form">
<input type="hidden" name="hidden_status" value="on"/>
</form>
</body>
</html>
Well I don't know if it's possible, but I would like to able to read
the content of a html file that I've opened in a new window, but do
this from the parent html file.
I think that maybe this isn't at all possible. But if anybody as an
idea it would be great.
The code is bellow
thx
Hugo
Parent page:
------------
<html>
<head>
<title>Test</title>
<script language="JavaScript1.2" type="text/javascript">
<!--
var myWindow;
function detect(){
myWindow = window.open("http://localhost/webapp1/status.html",
"Status");
alert(myWindow.document.forms[0].hidden_status);
myWindow.document.close() ;
}
//-->
</script>
</head>
<body>
<form>
<input type="button" VALUE=" Test Server" ONCLICK="detect();">
</form>
</body>
</html>
Child file:
----------
<html>
<head>
<title>Server</title>
</head>
<body>
<form name="my_form">
<input type="hidden" name="hidden_status" value="on"/>
</form>
</body>
</html>