javascript - Refresh and action button Html -


i add button enables action , refresh current webpage. don't understand why following code doesn't work. in fact action performed not refresh.

<form class="form-search" action="@url.routeurl("xx")" method="post">     <button type="submit" class="btn" onclick="window.location.reload();"></button> </form> 

any advice?

that doesn't make sense. action request page. refresh request same page. choose one.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -