dhtmlxWindow - Return value from window

How may I return a var inside

to my main script? I have read about [_frame.contentWindow.document.getElementById], but not sure how to use it here?



//-----DIV------












//-----Main Script-----







“_frame.contentWindow.document.getElementById” is used in case of attached url,
attachObject does not affect on local variables, just pay attention on variable scope.
variable does not store in divs, so you can use anywhere your variable (if it visible)