I am having a hard time getting specific text from a webpage.
http://mbible.com/john/1-1.htm
OR
http://m.bible.cc/hebrews/1-3.htm (Whatever easier!)

I want to get the text infront of "KJV" label. ex: KJV: sometext. how can I get this "sometext"

tried this and didn't work.

'Dim htmlElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("a")
        'For Each el As HtmlElement In htmlElements
        '    ' Provide additional logic if necessary
        '    If Not el.GetAttribute("href").contains("kingjbible") And Not el.GetAttribute("style").Equals("color:#001320; text-decoration:none") Then
        '        TextBox1.Text = el.InnerText.ToString
        '    End If
        'Next

I figured it out. Thanks guys

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.