Reputation: 35
I am designing a Web App in dreamweaver so using html code etc. I have got the telephone link now to work using a But I am struggling on my iPhone App to get the mailto link to work for email link
When I press the link nothing happens ( all works find on web browser) and on my iPhone App, the Mail does not load up.
I have look everywhere and can find the solution.
<a href='#' onclick='window.open(`mailto:[email protected]`, `_self`);'>Link text</a>
I found this code on stack overflow but its over 8years old and does not work?
Hope you can help?
Tim
Upvotes: 0
Views: 654
Reputation: 35
I have found a simple solution to the issue and that is to add target="_blank" and this then open Mail on a iPhone APP and all is fine. For some reason this is not stated on any other fourm not sure why ;-( a bit simple really
Upvotes: 0
Reputation: 137
This should do it:
<p><a href="mailto:[email protected]">Send email</a></p>
It makes use of href.
Upvotes: 1
Reputation: 177685
If it is to "hide" the email, then change to
<a href='#' onclick='this.href=`mailto:[email protected]`'>Link text</a>
otherwise
<a href='mailto:[email protected]'>Link text</a>
Upvotes: 0