Forum Moderators: open
Document 1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<iframe name="ifrOne" src="[i]your_file.htm[/i]"></iframe>
<p>
<br />
<a href="#" onclick="alert(window.ifrOne.test_var);return false;">check variable</a>
</p>
</body>
</html>
Document 2 (the one the iframe src points to):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
var test_var="testing, testing . . .";
</script>
</head>
<body>
<div style="height:200px;width:300px;background:#dee;"></div>
</body>
</html>