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 SharePoint and leave it as regular HTML page.