I need to open a shopping cart by clicking on a button/image on my website.

This is the jave code for the shopping cart:
Code:

Code:
<script>
    paypal.minicart.view.show();
</script>
How do I link that to a HTML image?