搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

mailto combined with onclick does not work

  • 無回覆
  • 0 有這個問題
more options

Hi,

example given:

<a alt="bla" onclick="return gtag_report_conversion('mailto:chief@example.com?subject=bla%20bla%20bla&body=more%20bla%20bla');" href="mailto:chief@example.com?subject=bla%20bla%20bla&body=more%20bla%20bla"></a>

works well with Chrome, Edge, Samsung but NOT with Firefox. Without the onclick-Event it works with Firefox too

<a alt="bla" href="mailto:chief@example.com?subject=bla%20bla%20bla&body=more%20bla%20bla"></a>

As the onclick is essential I wonder if there is a fix for the fox?

Thanks in advance, Alex

Hi, example given: <a alt="bla" onclick="return gtag_report_conversion('mailto:chief@example.com?subject=bla%20bla%20bla&amp;body=more%20bla%20bla');" href="mailto:chief@example.com?subject=bla%20bla%20bla&amp;body=more%20bla%20bla"><img src="https://image.example.com/image.png" /></a> works well with Chrome, Edge, Samsung but NOT with Firefox. Without the onclick-Event it works with Firefox too <a alt="bla" href="mailto:chief@example.com?subject=bla%20bla%20bla&amp;body=more%20bla%20bla"><img src="https://image.example.com/image.png" /></a> As the onclick is essential I wonder if there is a fix for the fox? Thanks in advance, Alex

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題