I have an button on my html page , which computes some logic when user clicks an button. I have registered an function to onClick event of an button.
like below :
<input type="button" class="bn" id="box2" onclick="move(this,event);return false;"/>
But this event refreshes the page , i want to avoid refreshing an page , is there any way i can avoid it.
I also have event.preventDefault(); in my function to avoid refreshing an page but no luck
Thanks for any help in advance.