title: Selecting DOM elements with inAppBrowser - Cordova
body: <p>It seems I can't select DOM elements from a website I've loaded using the inAppBrowser plugin. When I log <code>document.getElementById("input")</code> it's <code>null</code>. The resources I've read on this have treated selecting elements as trivial, but I seem unable. </p>
  
  <p>Here's the code I'm using: </p>
  
  <pre><code>var obj = {
        link: "https://www.foolink.com",
        input: "barInput",
        func: function(obj) {
            document.getElementById("input").value = obj.input;
        }
  }
  
  var ref = cordova.InAppBrowser.open(obj.link, "_blank");
  ref.addEventListener('loadstop', function() {
  
    ref.executeScript({code:obj.func(obj)})
  
  })
  </code></pre>
  
  <p>Has anyone else encountered this before? Using jquery to get selectors on gives me selectors from the index.html file, not the inAppBrowser window.</p>
  
  <p>*edit: currently using inAppBrowser 1.4.0 and cordova 6.0.0</p>