i have an html button in my sharepoint hosted app like this:
<input type="button" id="btnSubmit" value="Test"/>
and I tried
<button id="btnSubmit">Test </button>
but it is always refreshing until I remove all the code from sharepiont and leave it as regular html page.