W rzeczywistości istnieje możliwość uniknięcia pustej strony.
Dowiedziałem się, że możesz po prostu wstawić element iframe z linkiem mailto do domingu. Działa na bieżącym Firefox/Chrome i IE (również IE wyświetli krótkie okno dialogowe potwierdzenia).
jQuery, mam to:
var initMailtoButton = function()
{
var iframe = $('<iframe id="mailtoFrame" src="mailto:[email protected]" width="1" height="1" border="0" frameborder="0"></iframe>');
var button = $('#mailtoMessageSend');
if (button.length > 0) {
button.click(function(){
// create the iframe
$('body').append(iframe);
//remove the iframe, we don't need it any more
window.setTimeout(function(){
iframe.remove();
}, 500);
});
}
}
Przykład roboczy: https://jsfiddle.net/gaboom/h81qov5g/ – sibidiba
wypróbuj ' ' – KingRider