Open page using external browser

Asked

Viewed 344 times

0

Hello I am developing an application with the Onsenui framework (Cordova in visual studio) But the code below opens the url using the application itself as a browser. At the end of the day when I do this ,if I need to use the pliers, I have to open it again because it opens the url by the app itself. In other words, it transforms the application into a browser. How I could access the url by calling an external browser or opening another screen without compromising the use of the application?

  <ons-icon icon="fa fa-globe" fixed-width="true" onclick="location.href ='http://www.meusite.com.br'"></ons-icon>

i found this solution but could not apply so far. I have already added the Inappbrowser plugin to the project

https://stackoverflow.com/questions/34091912/i-need-to-launch-an-external-website-in-onsen-ui/34102792

1 answer

1

So I decided : Remembering that I added Inappbrowser

<ons-icon icon="fa fa-globe" fixed-width="true" onclick="window.open('http://www.meusite.com.br', '_blank', 'location=yes')"></ons-icon>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.