On a lot of sites lately, I\'ve seen buttons being replaced with loading/thinking images after they are pressed, to prevent double clicks and make sure the user knows something
I think you are looking for this one ,button have this function updatemycartpage() in onclick event
updatemycartpage()