I have an html button, like this:
<button onclick="func()" id="accountDetails" runat="server"</button>
I already spent a lot of time scratching my head to find out how to change the button's text by click on it, I put the following func() that execute the onclick event (html):
<script type="text/javascript">
function func() {
document.getElementById('accountDetails').textContent = 'server';
}
</script>
but the result is that the text on the button is changed just for a second, (i mean just when i click the button) and after that the old text is again shown on the button.