Tag: dom

IOS UIWebView: How to add listeners to DOM events?

How can I add listeners to DOM events in UIWebView? For example for the following html: <button type=”button” id=”button1″>Try it</button> Is it possible to register a listener for a button click event in IOS application that loads html in UIWebView?

How to captured Selected Text Range in iOS after text selection expansion

I’m working on a web app that allows a user to select some text, click a button, and save the highlighted text. This works great in desktop browsers, (chrome for this example), but in iOS I’m having issues with the native text selection, where the user can change the selected text. Here is the JsFiddle […]