D
D
dantedelvengo2019-03-11 17:24:26
JavaScript
dantedelvengo, 2019-03-11 17:24:26

How to link in vue.js mobile app to third party site?

Good time! I am making an application on vue.js, I mount it in cordova in apk \ ipa, how to place a button in the application with a link to a third-party site, so that when clicked, it opens in the installed browser on the phone, and does not try to open in the application itself! did like this:

<div class="menubut" onclick="location.href='https://google.com/'">Перейти на сайт</div>

So:
<a href="https://goodle.com/"><div class="menubut">Перейти на сайт</div></a>

and like this:
<a href="https://goodle.com/" target="_blank"><div class="menubut">Перейти на сайт</div></a>

but all this does not open the site in the user's browser, how to make it pop up something like a window "in which program do you want to open the link" - as is usually the case in other applications?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question