HTML frame, sharing data

Hi everybody,

I've made an HTML page with several frames :
<TITLE>My software Help</TITLE>
<FRAMESET cols="20%,80%">
   <FRAMESET rows="10%,25%,65%">
      <FRAME src="HelpMenu.php">
      <FRAME src="HelpActions.php">
      <FRAME src="HelpListRubrique.php">
   <FRAMESET rows="15%,85%">
      <FRAME src="RubriqueTitle.php" frameborder="NO">
      <FRAME src="RubriqueContent.php" frameborder="NO">

It works, but now I'd like to know how I could send data from a frame to another one...
For example diplaying in a frame the text written by the user (<input type="text"..>) in another frame.
Hope I've been clear..
Thanky by advance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

To start with you need to give the frames a name property so they are easily referenced:

<frame src="HelpMenu.php" name="helpM">

that way in any of the other frames you can reference the page in the frame with scripting this way:


How skilled are you at JavaScript?  You will have to provide a lot more detail if you need help with the actual coding.

vinceTraceAuthor Commented:
Thanks for your answer.
I've give a name property to one of my frame ('helpActions'), and in another frame I've written:

<script language="javascript">

And when the page is loaded, the alert message appears and displays the right thing (I've initialized the text input 'txtSearch' in the first frame).
But now I'd like that when I update this text input and click on the button "Search" (in the same frame than 'txtSearch') it updates the second frame (the alert message should display the content of the text input...)

It could maybe help if I mention that I'm trying to do a HTML help for a software I'm developping...
okay give the frame with the alert a name so it can be reference and make the alert a function:

<script type="text/javascript">
function doalert()

then on the button call the function like this:
<input type="button" onclick="top.frames['nameofframe'].doalert()">


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Glad I could help. Thanks for the A. :^)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.