Click to See Complete Forum and Search --> : Accessing info across frames


geuis
06-04-2003, 08:33 PM
How can I access <form> elements in one frame from another frame?

I have a javascript that is going to make a variable equal to the value of a text field in another frame. I'm not sure how to code it to access.

Eg.
the javascript is in topFrame and the text box is in bottomFrame.

var myVar = window.????.form1.inputBox.value;

where ???? is the code I'm not sure of.

Khalid Ali
06-04-2003, 08:56 PM
This page will give you a detailed info on this topic.

http://68.145.35.86/skills/javascripts/frames/ParentChildFramesInteraction.html

pyro
06-04-2003, 09:26 PM
Please try: var myVar = top.bottomFrame.form1.inputBox.value;