I have the following code:
<a onclick="removeCart('<?php echo $product['key']; ?>');" name="remove[<?php echo $product['key']; ?>]" class="button"><span>Remove</span></a>
When I click the “Remove” button, which is shown with the above code, I want the “onclick” to be executed (which is executed), and after that, the page to be refreshed. Any thoughts?
Thanks.
To reload the page using javascript you can do:
So to reload after the onclick simply add that to the end of onclick, eg:
edit: full code with delay