How do I really and completely close a window/tab ???
567447Sep 21 2010 — edited Sep 24 2010We are using APEX 4.0.1, starting to work with SSO.
I have set up a main application (App A) to call another APEX application (App B) via a link (link-to-App-B) on the Navigation bar in App A (Target Type:URL, Target URL: https://ourappservername.ourdomainname.net:4458/pls/htmldb/f?p=126" target="_blank"). My browser is set to open new windows in a new window, and not a new tab.
After I am done with App B I click on a 'Logout' link on the Navigation bar for App B, and it (Target Type:URL, Target URL: javascript:window.close();) closes the window as expected (or, closes the tab on the window if other tabs were opened). This is exactly the behavior that management wants for logging out.
However, if my, or any user, browser was set to open new windows in a new tab instead of a new window (or if a user were to right-click on the link and select 'Open Link in New Tab') and I clicked on the link-to-App-B link, App B would be opened in a new TAB in the window that App A is in. IF the 'Logout' link on the Navigation bar for App B is clicked on, THEN instead of closing the tab that App B resides in as I would like, the app just sits there.....laughing at me (figuratively speaking).
Is there any way I can set up a Navigation bar entry such that it will close the application in both scenarios - whether the app is in a new window or in a new tab????
TIA,
Thomas