macman012
08-27-2007, 12:38 AM
I have a Javascript page that consists of 2 frames, an upper and a lower. In the lower I have some functions that use Variable++ to increment a variable in a loop based on user actions. When this loop is done, I want to be able to access the final value of this variable in the upper frame. I have tried using things such as window.top.fraLowerWindow.function().variable.value, but I get the error "window.top.fraLowerWindow.function() is not a function." Any suggestions?
Example:
function WinMessage()
{
alert("Congrats, you have clicked the dot and scored a point!");
Clicks++;
}
How would I access the variable Clicks in another frame? (It is in a loop, and I want to access the final value when the loop is done.)
Example:
function WinMessage()
{
alert("Congrats, you have clicked the dot and scored a point!");
Clicks++;
}
How would I access the variable Clicks in another frame? (It is in a loop, and I want to access the final value when the loop is done.)