Inner closing as defined in your samples is not an appropriate method for closing a new window created in .NET. I have a .NET button that I need to do the inner closing of a window but your example of inner closing attaches another html page with an html button on it. I don’t want my users to have to click another close button on another html page. My application is .NET. Please advise. How does creating a new window and running a window.close on that window, work for a window that already has been created?
Thanks Deano
To close the dhtmlxWindow you need to call close() method for it. And you may call it in desired manner.
win.close();
If it is called from iframe parent.win.close();
Thank you so very much, Alexandra I hate to be such a pain.
for some reason this stopped working, I’m now getting a javascript error notifying me that parent.win is not defined and no error on win.close but it doesn’t close. This was working… don’t know what changed.
make sure that win is global variable:
parent.win.close();
sorry I don’t know how to do this…
Here is the demo:
dhtmlxWindows/samples/01_init/12_inner_close.html