Getting html element from inAppBrowser

Hello,

I am fairly new to developing js/angularjs, html, ionic and am running into some unknowns as I make my first app.
I am hoping that someone could help me with this.
I open a url from my view using $cordovaInAppBrowser.
The user will navigate from the opened link, to another page.
On this second page, there will be a text displayed for the user in a div. When I do “inspect element” on the page that is displayed, I see this:

<html> 
   ..... some content
       <div class="text gap20"> sometexthere </div>
   ..... some content 
</html>

What I want to be able to do is get the content “sometexthere” for the div class=“text gap20”.
Is this doable? I’ve looked at some other posts on this forum and stackoverflow, but I cannot seem to find something that will work for my case.

Thank you for your help in advance.

A short answer is no, you can’t do that.

Although there0s one solution but you must have a control over page you’re trying to access and do it via localstorage: http://www.telerik.com/blogs/cross-window-communication-with-cordova’s-inappbrowser

1 Like