mailto link not working within a frame chrome (over https) mailto link not working within a frame chrome (over https) google-chrome google-chrome

mailto link not working within a frame chrome (over https)


Yes, using "top" is the trick, but you can do it with HTML alone!

<a target="_top" href="mailto:...">email</a>


I also had this issue recently with an iframe. Using the top frame worked and should be compatible with all major browsers.

window.top.location = 'mailto:...';


Here is the solution I ended up with:Tested with Chrome, Firefox, IE6, IE7, IE8, IE9, IE10, IE11, Safari

$("a[href^='mailto:']").on("click",function() {    window.top.location = $(this).prop("href");    return false;});