Search code examples
htmlgoogle-chromemailto

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


I have a mailto link on a page. It works as expected when the page is loaded by itself.

However when the page is loaded via a frameset in Chrome nothing happens. With the developer tools loaded the error "[blocked] The page at https://mysite.com ran insecure content from mailto:..." is displayed.

How can I fix/workaround this?


Solution

  • 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:...';