Click to See Complete Forum and Search --> : javascript + win.open


Lox
01-13-2004, 12:35 PM
Hi,

In my window W1, I have a button which creates a new window W2. W2 contains a javascript function test("hello").
Is it possible to call test("hello") from a javascript function in W1? If yes, please tell me how.

my code in W1 looks something like this:
var mywin = window.open("sb.html", "Win SB");
// Then I call function test defined in sb.html window
mywin.test("1232");
but it doesn't work

Any ideas?

Lox
PS:
I don't know if Pittiman is a moderator here, but thanks for helping. Your last suggestion was not convenient for me either hehehehe :))

Pittimann
01-13-2004, 12:50 PM
Hi!

Sorry, I couldn't help in your other thread and (to get a bit too much off topic) my status is like yours: