As far as I understand the HTML code:
<a onclick="return confirm('Are you sure?');" href="http://news.bbc.co.uk
should produce a HTML page with a single link that if clicked asks "Are you sure" and then if you press Cancel the link will not fire. However, it goes to the link whether I press OK or Cancel.
Why does it do this and how can I get the click to cancel?