1

How do you select text in Android and detect Android browser with Javascript?

One example:

<script>
function select(){
    var sel = window.getSelection();
    alert(sel);
}
</script>

<div onmouseup="select();">

it is a example 

<div>

Are functions on range compatible with Android?

5
  • Does that code not work on Android browsers? Commented Oct 11, 2012 at 22:02
  • I've tried and I think it dont works. I update it Commented Oct 11, 2012 at 22:15
  • yes, I try this on my android 2.3 and it not works Commented Oct 11, 2012 at 22:35
  • possible duplicate of this Commented Oct 12, 2012 at 10:01
  • oh! get me the url of the post, please. Commented Oct 12, 2012 at 17:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.