Dale Burrell Dale Burrell - 1 year ago 158
HTML Question

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?

Answer Source

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:...';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download