Open page using external browser

0

Hello, I'm 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 doing this, if I need to use the alicative, I have to open it again because it opens the url by the app itself. In other words, it turns the application into a browser. How can I 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 I could not apply it so far. I have already added the InAppBrowser plugin to the project

link

    
asked by anonymous 17.01.2016 / 16:21

1 answer

1

I solved this: 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>
    
17.01.2016 / 16:34