0

Note: This is Android-specific question (i.e. methods using Flash seem not to be applicable for Android).

Is it possible to use Javascript to select all WebView content?

Also note that I am asking about "select" only, not necessarily copy to clipboard.

If your method happens to do both select & copy, that is good, too, but it's not mandatory. All I need right now is a way to select all WebView content (as if I am about to copy it), using Javascript.

If this is possible, can you post sample Javascript code that does this?

Community
  • 1
  • 1
Regex Rookie
  • 10,432
  • 15
  • 54
  • 88

1 Answers1

1

Here is an example that might help Extracting HTML from a WebView

ninjasense
  • 13,756
  • 19
  • 75
  • 92