title: Open External URL in a new browser window from MVC controller
body: <p>How do i open an external URL (say google.com) in a new browser window / tab from MVC controller button click based on the condition's of success/failure.So far i tried this </p>
  
  <pre><code>    //Controller code
    public ActionResult Index( ) 
  
    {
  
   --Do some logic
   if(logicpasses)
   {
          return Redirect("http://google.com"); -- This doesn't work out as it's navigating to the URL in the same tab
  
      return JavaScript("Window.open('http://google.com')"); -- This is not    working as  well
   }
  else
  {
   return Redirect("http://google.com");
  }
  }
  </code></pre>