I need to display conditionally my shopping cart button using Javascript and Css. My goal is to hide the button when no items are present inside the cart.

The code of my button is:

```
<span id="mycartbutton" style="float: right; clear: both;">
<a class="button"href="$(shopping_cart_url)">Mon panier</a>
</span>

```

When nothing is present in the cart, the url look simply like this:

```
/.../mode=show_cart

```

When one or more items are present, the url look like this:

```
/.../mode=show_cart&cart_id=10332&first_reservation_id=717

```

Unfortunately I'm not a coder and I don't have any knowledges of javascript but I suppose is possible to make a check according to rendered url.

Actually I use the follow javascript:

```
<script type='text/javascript'>
function on_site_form_loaded(event) {
    if (event=='product_list')
        document.getElementById('mycartbutton').style.display='none';
    }
</script>

```

..this allow me to hide the button on product list as desired BUT even if some items are inside the cart.

Somebody can tell me which conditional code I must use for check if the url contain for example the text "cart\_id"? This will mean something is present inside the cart and will let me hide the button.