title: in a pop up after using window.location to redirect, window.close becomes undefined
body: <p>Here is what is happening...</p>
  
  <p>My website redirects to Third Party Website which uses <code>window.location</code> to redirect back to my website. All this is happenining inside a pop up window.</p>
  
  <p>The issue i am facing is in Chrome, after the redirect <code>window.close</code> is <code>undefined</code> along with some other attributes like <code>window.opener</code> 
  Any idea how can I close this window ? </p>
  
  <p>Don't have much control over how redirection is happening as its a third party  website.</p>
  
  <p>I changed <code>window.location</code> in one of my pages to redirect to another page and in that page this issue was reproducible.</p>
  
  <p>EDIT:</p>
  
  <p>The issue was not <code>window.location</code> redirection but something else ... Trying to debug it further, have found a solution though and answered in this question.</p>