FILE : TEST187.HTML
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
function manda() {
valore = document.frames("if1").document.getElementById('t1').value;
document.frames("if2").document.getElementById('t1').value = valore;
}
//-->
</script>
</head>
<body>
<iframe src="test187b.html" name="if1" id="if1">
</iframe>
<iframe src="test187c.html" name="if2" id="if2">
</iframe>
manda
</body>
</html>
FILES : test187b.html e test187b.html
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<input type="text" id="t1">
</body>
</html>