# Getting problem using file in "in app browser"

**URL:** <https://forum.ionicframework.com/t/getting-problem-using-file-in-in-app-browser/55713>\
**Category:** cordova\
**Created:** [June 24, 2016, 12:34pm UTC](https://forum.ionicframework.com/t/getting-problem-using-file-in-in-app-browser/55713 "2016-06-24T12:34:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitinss](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@nitinss](https://forum.ionicframework.com/u/nitinss)\
**Post date:** [June 24, 2016, 12:34pm UTC](https://forum.ionicframework.com/t/getting-problem-using-file-in-in-app-browser/55713/1 "2016-06-24T12:34:36Z")

</div>

Hi,

I’m using inAppBrowser ([http://ngcordova.com/docs/plugins/inAppBrowser/](http://ngcordova.com/docs/plugins/inAppBrowser/)) for my app. I’m using following code.

$scope.openBrowser = function() {  
$cordovaInAppBrowser.open([http://example.com](http://example.com) ', ‘\_blank’, options)

```
  .then(function(event) {
     // success
  })

  .catch(function(event) {
     // error
  });
}

$rootScope.$on('$cordovaInAppBrowser:build', function(e, event){
  console.log('my event');
});

```

$rootScope.$on(’$cordovaInAppBrowser:loadstop’, function(e, event){  
$cordovaInAppBrowser.executeScript({  
file: ‘script.js’ // What will be the path of this file?  
});  
});

Please reply asap.

Thanks

Nitin singh Solanky  
[nitin@techacadium.com](mailto:nitin@techacadium.com)

---

<div class="post-metadata">

**Author:** ![mm185](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mm185](https://forum.ionicframework.com/u/mm185)\
**Post date:** [August 27, 2016, 6:54pm UTC](https://forum.ionicframework.com/t/getting-problem-using-file-in-in-app-browser/55713/2 "2016-08-27T18:54:32Z")

</div>

I’m interested too, but on ionic2 🙂
