-
Closing a browser window from a toolbar
Closing a browser window from a toolbar
Hi I have a toolbar with several button on it. One of them being Close. I want to close the browser window but it doesn't work.
In the button I have the handler: closeHandler and the actual function I am using window.close()
When the button is clicked, nothing happens.
does window.close work with ext or is it something else
Thanks
-
Sencha - Services Team
There are restrictions (browser settings) in effect these days that prevent that from happening.
Sometimes you can coerce by setting window.opener to an object, and try self.close().
Not easy
-
Thanks for that but tried it already
function closeHandler() {
self.close();
}

-
Just an update
window.close() & self.close() work when the form is in read mode but not in edit mode ???
-
Sencha - Services Team
Are we talking about the Browser.window.close, or
Ext.Window.close ??
-
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us