Submit a form with request via an anchor click

HTML

<body class="claro">

  <div id="everChangingId" data-viewid="myViewId">
    <button id="bebe" type="button" onclick="alert('neko me stiso')">Ovo je button B</button>
  </div>
  
  <hr/>
  
  <button type="button" onclick="mojaf()">Klika button B</button>

</body>

JavaScript

function mojaf() {
alert('neko me stisot');

}