how can get value inside dhtmlxwindow

I have a html page with button. When button clicked dhtmlxwindow (it attachs a URL) is displayed. How parent page (a function in parent page) can get value inside dhtmlxwindows such as value in a text box, listbox… inside the window


You can try to use something as follows:


var val ="";


if (_isIE) {
val = dhxWins.window(id)._frame.contentWindow.document.getElementById(“divId”).value ;
} else {
val = dhxWins.window(id)._frame.contentDocument.getElementById(“divId”).value ;
}