2 Replies Latest reply on Aug 28, 2017 3:46 PM by Colin Holgate

    HTML5 Canvas - "mailto" button code not triggering email client on iPhone

    colinadriel

      Hi,

       

      I am working (in Animate CC 2017) on a mobile "placeholder" page and need to have a button which will allow for direct email (ie a "mailto" link). The page in progress is here:

       

      http://christianhubert.com/mobile/

       

      Clicking the email address in the yellow bar on the bottom works properly on my desktop, but not on my phone - it just brings up a blank browser window.

       

      I tried adding the "Click To Go To Webpage" HTML5 snippet to a transparent button laid over the email address and replaced the http with mailto code:

       

      this.button_1.addEventListener("click", fl_ClickToGoToWebPage_3);

      function fl_ClickToGoToWebPage_3() {

      window.open("mailto:info@christianhubert.com", "_blank");

      }

       

      This made the email address clickable with the desired result on my mac, but not on iPhone.  What code would I need to add to make the email address clickable on mobile?

       

      Thanks,

      Colin