locked
Capturing Custom Hyperlinks inside WebView

    Question

  • how am i able to catch the string text embedded inside a hyper link such that i can use it to do some internal navigation for the app. so for example if i had some link on an image within the webview, if its clicked the app will catch that link read it and figure out what to do with it.
    Friday, May 01, 2015 5:02 PM

Answers

  • Hi Developers_Pagesuite,

    Basically if you click the hyperlink that can navigate the webview, the NavigationStarting event should be called and we can definitely know what's the url of the content the WebView is loading, we also can cancel the navigation by set cancel as true.

    If you need more detail about the html page without click the hyperlink, inject JavaScript code into the page and we can manipulate the DOM tree to get more information.

    --James


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    Wednesday, May 13, 2015 8:14 AM
    Moderator

All replies