Programmatically trigger copy menu in iOS safari using javascript? -


I'm trying to implement a user-friendly way to copy some text from the text input field. IOS / Safari I think there is no way to program on this forum, but I was hoping that I can guide the user's experience as much as possible.

On iOS / Safari, when a user manually highlights some text, a relevant copy menu pops up. I was hoping that the same menu pops up when the text is programmatically selected, but it is not. Is it possible to do this?

If not, how to implement user-friendly experience in a best way to copy some text on the clipboard on iOS / Safari?

The context, I am selecting the text using the method described in this question:

This is unfortunately not possible. I can include some informative text under the input, hopefully the user will work properly in terms of friendship.

Another option would be to go original, e.g. Wrapping using phonegaps, but I think you already know about that option if so, so some of the native code will work in:

  [UIPasteboard generalPasteboard]. String = @ "your string";    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -