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

后端 未结 7 1496
梦如初夏
梦如初夏 2020-12-09 02:25

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. Wit

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-09 02:54

    Possibly because your parent frameset is https, but Chrome now seems to treat the mailto link as insecure.

    I just came across a similar issue when triggering a mailto link via

    window.location = 'mailto:...'
    

    Changing it to this worked around it.

    window.open( 'mailto:...')
    

提交回复
热议问题