How to refer to a function in a frame from another frame?

L

laredotornado

Hi,

I have this master frameset page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Account Creation</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=ISO-8859-1">
</HEAD>

<frameset rows="0%, 100%">
<frame src="creation_result.php" name="createAccount">
<frame src="display_result.php" name="content">
</frameset>

From within the "createAccount" frame, I want to call a function
defined in the content frame. The content frame's HTML is roughly as
follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Account Creation</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../styles/styles.css">
<script type="text/javascript" src="../scripts/util.php"></script>
<script type="text/javascript" src="../scripts/util.js"></script>
<script type="text/javascript">
function setMsg(msg) {
document.getElementById('m').innerHTML = msg;
} // setMsg
</script>
</HEAD>
<BODY>
....
</body>
</html>


How do I refer to the "setMsg" function in the content frame from the
other frame (named "createAccount"?

Thanks, - Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top