Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
Well, the onclose event handler lets you execute code when a DHTML window is closed. The variable you assigned to when calling dhtmlwindow.open() contains a DOM reference to that window, so you can use that to then access anything within the DHTML that was closed, for example:
Code:
var mywin=dhtmlwindow.open("sitebox", "ajax", "mypage.htm", "#1: My Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
mywin.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
alert(mywin.innerHTML) //alert contents of window
return true
}
If you're using the IFRAME mode (instead of say Ajax like above), the page shown must be on your own domain, as you can't access info from a off site page.
Bookmarks