javascript - Prevent link popups in phonegap - Stack Overflow

I am using the phonegap api, to create a native iPhone application. However when creating links between

I am using the phonegap api, to create a native iPhone application. However when creating links between pages, if you hold down the links for a few seconds a popup es up asking you if you wish to open or copy the links. I was wondering how I could disable these popups from ing up, to make the application run more smoothly etc?

I am using the phonegap api, to create a native iPhone application. However when creating links between pages, if you hold down the links for a few seconds a popup es up asking you if you wish to open or copy the links. I was wondering how I could disable these popups from ing up, to make the application run more smoothly etc?

Share Improve this question asked Sep 28, 2011 at 18:55 Alex SaidaniAlex Saidani 1,3172 gold badges16 silver badges32 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

I know this is almost a year ago, but I thought I could share some thought.

the suggestion is a good one, but it doesn't quite work for me working with Cordova 2.2 and JQM 1.2. Tapping and holding on a button or a tab (actually a link, A element), the actionsheet still pops up from the bottom of the screen (of an iphone, let's say).

This is what that does it for me:

.yourclassname {
    -webkit-touch-callout: none;
}

You can disable it entirely, or only for links. Set it in the CSS for links:

.class_name {
    -webkit-user-select: text;  

} 

Or for everything:

.class_name {
    -webkit-user-select: none;
}

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744621672a4584384.html

相关推荐

  • javascript - Prevent link popups in phonegap - Stack Overflow

    I am using the phonegap api, to create a native iPhone application. However when creating links between

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信