title: When I use input type="button" a function works well but when I use button  it doesn`t
body: <p>I call the same function with those two types of button. With the first it works perfectly but with button it works well at the first but in less than one second it looks like refresh the page.</p>
  
  <pre><code>&lt;input type="button" id="bProv" value="filtrar" onclick="filtroP()"/&gt;
  &lt;button id="bProv" onclick="filtroP()"&gt;filtrar&lt;/button&gt;
  </code></pre>