title: How to Redirect to the main page from pop up window in html
body: <p>I have a html page to login via gmail account . for that am using pop up window for login. Here i menstion the code,</p>
  
  <p>My HTML Code :</p>
  
  <pre><code>&lt;body&gt;
  &lt;a href="&lt;?php echo $login_url; ?&gt;"target="popup" 
      onclick="window.open('&lt;?php echo $login_url; ?&gt;','popup','width=600,height=600'); return false;"&gt;
        Sign in with Gmail
   &lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>If  i click the Sign in with Gmail button means  gmail is opened in a pop up. but after giving mail id and password and click sign in means my next page is loaded inside the pop up only.</p>
  
  <p>But i want to close the pop up window after sign in and redirect to my main page . How to do that. please any one help me</p>