Apex javascript
Close parent window
How do you close parent window with javascript? From a modal-page : window.parent.close(); From a non-modal page : window.opener.close();
How do you close parent window with javascript? From a modal-page : window.parent.close(); From a non-modal page : window.opener.close();
Sometime you want to force users not ‘just’ to close the dialog by a ‘x’, but by a button with some actions in the background. To remove the X you have to add CSS-code in the parent page: button.ui-button.ui-corner-all.ui-widget.ui-button-icon-only.ui-dialog-titlebar-close { visibility: hidden !important; display:none; }