I'm trying to reference values in the opening window but having no joy. Two files:
<html>
<head>
</head>
<body>
<form name="main">
<iframe src="test02.html">ghgh gh</iframe>
<input type=hidden name="a1" id="a1">
</form>
</body.
</html>
<html>
<head>
<script language = "JavaScript">
function doX(){
opener.document.forms["main"].a1.value = "gg";
window.opener.getElementById("a1").value = "gg";
}
</script>
</head>
<body>
<input type=button value="click" onclick="doX();">
</body.
</html>
Both methods of setting the value of a1 fail. Any ideas?
<html>
<head>
</head>
<body>
<form name="main">
<iframe src="test02.html">ghgh gh</iframe>
<input type=hidden name="a1" id="a1">
</form>
</body.
</html>
<html>
<head>
<script language = "JavaScript">
function doX(){
opener.document.forms["main"].a1.value = "gg";
window.opener.getElementById("a1").value = "gg";
}
</script>
</head>
<body>
<input type=button value="click" onclick="doX();">
</body.
</html>
Both methods of setting the value of a1 fail. Any ideas?