It seems very simple, but how can I call the javascript function defined in the top level html from the child frame?
top html doc - 1st level frame - 2nd level frame
my top html doc has a testFn () function. In the 2nd level frame, I have a button with onclick="top.testFn();" but this does not call testFn (). In Firebug, if I use a clock to execute top.testFn(); , he says TypeError: testFn () is not a function.
If all this just works - in this case, is it a problem with my documents or is there another way to call functions in a top-level window?
javascript frames
Rory
source share