Return a value from a window

It’s possible to return a value from a window that I attach by URL??

I try with getfame() but I don’t know how can use the object.
Can you show me a example?

Only I need that the window with the dinamic URL return a result

Thanks a lot!

getFrame() returns iframe object.

To get contentWindow use the following:

var ifr = win.getFrame();
var ifrWindow = ifr.contentWindow;
var ifrDocument = ifrWindow.document;

So, JS objects that are defined on the page that you loaded can be got by ifrWindow, html element - ifrDocument.getElementById(…)

Perfect!!! thanks a lot!!!