On 15/12/2010, at 05:18, anmldr wrote: > I have been searching for a JavaScript that would find a string in a > page, highlight the found string and scroll to the found string. I > can't seem to find one that will work on the iOS. Does anyone have > something that works? Will you share?
document.body.innerText gives you the document's clean text without any markup. But you can read the innerText of any other element too. So, say you want to search into the <li>s of an a <ul>, you can search into it as a single piece of text (ul.innerText) or walk them individually looking further into their li.innerTexts. -- Jorge. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
