Refering to grandparent window

Hello,

I have a layout on page (a) where one of the cells contains a page (b) via attachURL(). This page (b) contains another layout and again one of the cells holds a page © via attachURL().

Is it possible to access a javascript function on page (a) from a button in page ©? If so, how would I have to do this?

(I use a licensed version, so all the apis are there)

thanks in advance and kind regards,
Arno.

attachURL loads a page into an iframe. Therefore, you may try the following to call a function defined on the (a) page:

parent.parent.yourFunction();