Show confirm box before mailto function | Codeexecute

Show confirm box before mailto function

<a href="mailto:info@codeexecute.com" onclick="return confirm('do you want to continue');">Click Me</a>

or 

<a href="mailto:info@codeexecute.com">Click Me</a>
<script>
jQuery(document).ready(function(){
	jQuery('a[href^="mailto"]').click(function(){
		return confirm('do you want to continue');
	});
});
</script>