0

Hi,

I have a javascript function that sets the value of an input area on my page. I need to update the function so that it also sets the value of the input area on a separate page. Currently, I am using a frameset, so I can see both pages simultaneously, but I cannot change the value of the upper page from the lower page which contains the script to update the input areas.

Here is my code:

document.lowerForm.inputOne.value = myVar; //Successfully Updates Input Area.
document.upperForm.inputTwo.value = myVar; //Cannot find specified form and input area.

Thanks,
-Ashton

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by AshtonHogan
0

Nevermind noobs, I found out how to do this! :)

Here is the code:

parent.FRAME_NAME.document.FORM_NAME.INPUT_AREA_NAME.value = VARIABLE_NAME; //Or Hardcode a number/string/boolean, etc instead of using a VARIABLE_NAME.
0

the code for your question

parent.FRAME_NAME.document.FORM_NAME.INPUT_AREA_NAME.value = VARIABLE_NAME; //Or Hardcode a number/string/boolean, etc instead of using a VARIABLE_NAME.
check it out..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.