How about this ?
try {
parent.fra_main.fnCheckWindow()
} catch (e) {
}
> But it says : fnCheckWindow is not defined
>
> Regards,
> Chandrabhan Dutta Majumdar
>
> -----Original Message-----
> From: Roy Koczela [mailto:rkoczela@a...]
> Sent: Tuesday, October 29, 2002 10:37 AM
> To: javascript
> Subject: [javascript] RE: Accessing function in other frame
>
>
> I think
>
> if (parent.frames.fra_main.fnCheckWindow !=null) {
> parent.frames.fra_main.window.fnCheckWindow();
> }
>
> should work.
>
> -----Original Message-----
> From: chandrabhan_dutta [mailto:chandrabhan_dutta@i...]
> Sent: Monday, October 28, 2002 8:30 PM
> To: javascript
> Subject: [javascript] Accessing function in other frame
>
>
> Hi All,
>
> I have two frames. from one frame i am calling a function in
> other frame as
> shown below:
>
> parent.frames.fra_main.window.fnCheckWindow()
>
> Now, how do I check whether the function exists or not? right
> now if it is
> not there, javascript error comes.