Pass method = post in button and not in firm : I want to pass a variable but for that i need to create a form. But I am using java script to open the next page(that is a block page) but I want to pass the method=post directly in the button and not in the form because it does not recognize the code, here is an example:

What I have:

     <form action="" method="post"> 
     <button onclick="document.getElementById('id144').style.display='block'" class="btn btn-warning">Editar nome grupo</button>
     </form>

What I want
 

    <button //pass method = post here onclick="document.getElementById('id144').style.display='block'" class="btn btn-warning">Editar nome grupo</button>