# Open link with system browser

**URL:** <https://forum.ionicframework.com/t/open-link-with-system-browser/130463>\
**Category:** ionic-v3\
**Created:** [May 14, 2018, 1:02pm UTC](https://forum.ionicframework.com/t/open-link-with-system-browser/130463 "2018-05-14T13:02:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![greentreelabs](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/greentreelabs/32/113131_2.png) [@greentreelabs](https://forum.ionicframework.com/u/greentreelabs)\
**Post date:** [May 14, 2018, 1:02pm UTC](https://forum.ionicframework.com/t/open-link-with-system-browser/130463/1 "2018-05-14T13:02:09Z")

</div>

Hi folks,

I think I’ve tried everything but still no luck. I need to open links with the system browser, but I can’t use InAppBrowser as the whole text that contains the link is loaded from a remote service.

Currently all links are opened in a webview without header and menu, so the user is stuck once he/she clicks.

If I could at least add an header with a back button it would be ok but I’m currently not able to do that neither.

Any help? Thanks!  
Diego

---

<div class="post-metadata">

**Author:** ![avishai\_peretz\_dev](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@avishai\_peretz\_dev](https://forum.ionicframework.com/u/avishai_peretz_dev)\
**Post date:** [May 14, 2018, 1:19pm UTC](https://forum.ionicframework.com/t/open-link-with-system-browser/130463/2 "2018-05-14T13:19:34Z")

</div>

check this plugin [themeable-browser](https://ionicframework.com/docs/native/themeable-browser/)

---

<div class="post-metadata">

**Author:** ![greentreelabs](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/greentreelabs/32/113131_2.png) [@greentreelabs](https://forum.ionicframework.com/u/greentreelabs)\
**Post date:** [May 14, 2018, 1:37pm UTC](https://forum.ionicframework.com/t/open-link-with-system-browser/130463/3 "2018-05-14T13:37:00Z")

</div>

> [@avishai\_peretz\_dev](#):
>
> check this plugin themeable-browser

unfortunately that plugin is no more mantained.

---

<div class="post-metadata">

**Author:** ![greentreelabs](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/greentreelabs/32/113131_2.png) [@greentreelabs](https://forum.ionicframework.com/u/greentreelabs)\
**Post date:** [May 14, 2018, 1:58pm UTC](https://forum.ionicframework.com/t/open-link-with-system-browser/130463/4 "2018-05-14T13:58:26Z")

</div>

I found a solution, ungly and dirty but the only one I found:

```auto
    document.addEventListener('click', (e: any) => {
      console.log(e.target);

      if(e.target && e.target.href)
        console.log("opening " + e.target.href);
        this.iab.create(e.target.href, '_system');
        
        e.preventDefault();
    });

```

where “this.iab” is an instance of InAppBrowser.

---

<div class="post-metadata">

**Author:** ![samo012](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@samo012](https://forum.ionicframework.com/u/samo012)\
**Post date:** [November 25, 2019, 5:01pm UTC](https://forum.ionicframework.com/t/open-link-with-system-browser/130463/5 "2019-11-25T17:01:53Z")

</div>

This is the only solution that has worked for me when injecting dynamic HTML. Angular’s HostListener did not work for me.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:35pm UTC](https://forum.ionicframework.com/t/open-link-with-system-browser/130463/6 "2021-07-19T21:35:36Z")

</div>

Closed on July 19, 2021, 9:35pm UTC


