Mailto links do nothing in Chrome but work in Firefox?

后端 未结 17 723
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 08:13

It seems like the mailto links we\'re embedding in our website fail to do anything in Chrome, though they work in Firefox.

Simple example here: http://j

17条回答
  •  醉酒成梦
    2020-12-02 08:55

    I also experienced this issue, and eventually tracked it down to the fact that my link was within an iframe, and my web app uses https. Chrome was blocking it due to this (Chrome would open other mailto links outside of the iframe).

    In mailto link not working within a frame chrome (over https), kendsnyder mentioned simply changing

    email
    

    to

    email
    

    Voila, problem solved. That mailto link now works in all browsers.

提交回复
热议问题