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

前端 未结 5 1164
故里飘歌
故里飘歌 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:39

    Excellent find, I'm doing the same thing and couldn't understand why until recently. If you look round line 161 and 284 in jqtouch.js rev 109 you see that the target attribute "_Blank" will keep jqtouch from hijacking your click event. It is intercepting the event because that is the primary mechanism to move from page to page.

提交回复
热议问题