I can't get mailto links to open the Mail app from Mobile Safari when using jQTouch. What could be wrong?

前端 未结 5 1160
故里飘歌
故里飘歌 2020-12-16 18:00

I\'m developing an iPhone web app using jQTouch, and it contains a simple mailto: link to a valid email address, which should launch the iPhone mail application

5条回答
  •  情话喂你
    2020-12-16 18:52

    I looked again at the example code in the jQTouch demo package and saw that they were adding a target="_blank" attribute to their email link.

    I did this to my link, and it began working (popping up the mail client window). However, the link that's in a standard web page works as well, but without the target="_blank" attribute...

    I'm puzzled, but adding that attribute seems to solve this problem if your mobile page is using jQTouch.

提交回复
热议问题