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
  • 9,772
  • 12
  • 50
  • 87

1 Answers1

1

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

ninjasense
  • 13,382
  • 17
  • 71
  • 91