how to call a function

srithil

Newcomer
Joined
Apr 30, 2004
Messages
21
hai,

I am opening a window child.aspx as a popup from parent.aspx.

I have a button in my child form "find".Is it possible to fire an event findnext()
in the parent form when i hit this button in the child form.
something like,
window.opener.form.findnext()
what is the exact syntax.
I am stuck with this.anybody pls help.

tx.
 
The only way would be to open yet another window and call the event. Since these are web pages you cannot call routines from one to another like you can with windows apps.
 
Yes, the opener property is used to access variables and functions defined in the window that created it. It is a read/write reference to the Window object that contained the script that called the open() function. Is the name of your form 'form' like you specified?
 
I think this may work (plz correct me if i'm wrong):

window.opener.findnext();

I don't think you need to even reference your form as your subroutine findnext is part of (access through) the window object that opener returns.
 
Back
Top