JS: calling another HTML function
-
Hi all :) Well... I know it is a simple question for guys like you, But I need an answer. I have an HTML with 2 FRAMES. Frame A & B. I need that when function "doit()" runs on 'A', it will call the function "runme()" on frame 'B'. and the function runme() will run on the 'B' frame and will change the 'B' parametrs. is there a way to do it ? ? Somthing like:
function doit()
{
runme(); // will call runme() on 'A'
B.runme(); // will call runme() on 'B'
}JavaScript of course. 10x ---------- The Server
-
Hi all :) Well... I know it is a simple question for guys like you, But I need an answer. I have an HTML with 2 FRAMES. Frame A & B. I need that when function "doit()" runs on 'A', it will call the function "runme()" on frame 'B'. and the function runme() will run on the 'B' frame and will change the 'B' parametrs. is there a way to do it ? ? Somthing like:
function doit()
{
runme(); // will call runme() on 'A'
B.runme(); // will call runme() on 'B'
}JavaScript of course. 10x ---------- The Server
Found it ;)
//this frame_A
function doit(){
parent.frames["frame_B"].runme();
}