Search code examples
javascriptxpagespopupwindowmaximize-window

Xpages xsp popup form + disable close button


I have a xsp form in Xpages, and this is called in a JS file as follows:

PopupWin = window.open('PopupWin1.xsp?iddoc='+id,'','width='+w+',height='+h+',top='+pt+',scrollbars=yes,resizable=yes,left='+pl);

I want to disable (grey-out) the close button for this popup window. How to do so?


Solution

  • Look at help for window.open for the relevant browser. The popup window is not being managed by XPage functionality but is being opened as a normal browser window.

    If you want to manage the opened window and it's being opened from an XPage, use the Dialog component from the Extension Library and manage using this answer Non closable dialogbox from Extension Library.