I am trying to return to a different page on button click but i'm unable to achieve . It hits the controller action method(onclick) but the view remains the same & url in the browser remains unchanged .
Html:
<input type="submit" class="btn btn-primary" value="Login" onclick="window.location.href='@Url.Action("Home", "Index")' "/>
Even when i keep http://www.google.com
it doesnt seems to work .
am i missing anything important here