The page in question is here: http://ezup.com/csg/gt.html
In Firefox the alert box triggers, but then the page just automatically forwards without waiting for any input from the user. This is working in IE and Chrome, except that Chrome doesn't seem to recognize the cookie...
<script type="text/javascript">
$(document).ready(function(){
(".buy > a").click(function(){
//alert($.cookie("firstClick"));
if($.cookie("firstClick") != 1){
$.cookie("firstClick", "1");
alert("You will now be directed to the Shopping Cart page. Please use your browser's back button to return to the CSG store.");
}
else if($.cookie("firstClick") == 1){
}
});
});
</script>
<body>
<ul>
<li class="buy">
<a href="http://store.ezup.eu/ShoppingCart.asp?ProductCode=EC2HSF1010W&ProductCode=EC1010402142T">L
<button type="button">Add to Cart</button>
</a>
</li>
</ul>
</body>