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