The dust has finally settled in since October with lots of family happenings and holidays and now I'm back to resume my Javascript lesson.
Again I apologize as well.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Frameset Page</title>
<script type="text/javascript">
function writeInB(message)
{
frmTop.frmB.document.write(message);
}
</script>
</head>
<body>
<frameset rows="50%,*">
<frame name="frmTop" src="frame_top.htm" />
<frame name="frmBottom" src="frame_bottom.htm" />
</frameset>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Top Frame</title>
<script type="text/javascript">
function callParentFunction()
{
parent.writeInB("Calling from frmTop");
}
</script>
</head>
<body>
<frameset rows="50%,*">
<frame name="frmA" src="frame_a.htm" />
<frame name="frmB" src="frame_b.htm" />
</frameset>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Bottom Frame</title>
</head>
<body>
<h1>Bottom Frame</h1>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Frame B</title>
<script type="text/javascript">
parent.callParentFunction();
</script>
</head>
<body>
<h1>Frame B</h1>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Frame A</title>
<script type="text/javascript">
top.frmBottom.document.write("Hello from frmA!");
</script>
</head>
<body>
<h1>Frame A</h1>
</body>
</html>
I will move forward and start lesson 13 until I hear back from you with issues on Lesson 12.
Again my apologies and looking forward to hearing from you soon.