I am having a Xpage with some links. One of my link call EXIT having window.close()
to close the current tab in browser.
In browser when I am opening the document(Xpage holds the document) from the view and clicking on the EXIT link, it closes the current tab/window.
Whereas, I am redirecting the same xpage from SSJS using context.redirectToPage()
. When I clicking on the EXIT link, it is not closing the tab/window.
In Javascript console: Scripts may not close windows that were not opened by script
Anyone help me.
Thanks in Advance, Karthick