I have a variable var somewhere along my js program. lets call it 'tempVar'. I want to pass this variable when the button is being pushed. here is part of my code:
var TempVar=9;
<form id="boardButton" action="/test"  >
    <button id="joinBoardButton" >JOIN</button>
</form> 
how can I pass to the page test the content of Tempvar?