How can I mailto: and navigate to a URL with the same jQuery action? I want to do the following:
<script>
$(function() {
$('#foo').click(function() {
window.location.href = 'mailto:foo@bar.com';
window.location.href = 'bar.com';
});
});
</script>
… but the above only executes the mailto.