Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Clearing a webview selection

I am updating text in a webview with javascript. The problem is that if the user has a currently active selection, that selection remains when the text is updated. I'd prefer to clear the selection if the text changes, or on a copy. I tried to use document.selection.clear() or document.getSeletion().clear(), but didn't have any luck. Any ideas?

— asked May 14th 2010 by Damien Elmes
  • iphone
  • selection
0 Comments

1 Answer

  • Hey Damien, did you find a solution to clearing the selection?

    — answered November 28th 2013 by Jerod Fritz
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.