Skip to content Skip to sidebar Skip to footer

Serialize A Selection (html) With Javascript

How i can serialize a selection (in javascript) of text in webView (html page) and restore this selection after the user reload the application ?

Solution 1:

You could use the serializer module of my Rangy library. For a similar but more lightweight solution, you could use this code snippet by Martin Honnen.

Solution 2:

Use the serialize function in jquery Demo in this fiddle

Post a Comment for "Serialize A Selection (html) With Javascript"