简体   繁体   中英

Open external links in full screen from mobile app

I'm building a Cordova app which has a link to an external site ( https://www.example.com ). I need the page to open in a full screen browser window(address bar hidden) on clicking a button in the app. Is there a way this can be done? Thank you in advance.

EDIT

I've tried using the inAppBrowser but the reason it isn't working is because the external site that I'm opening requires a windows authentication. Because the inAppBrowser is the topmost view, the popup for the windows authentication doesn't show up and hence, I'm unable to view the page.

Use this plugin, Then

ADD in the head

cordova.js 

ADD a reference to YOUR InAppBrowser.js file

ADD links

onclick="var ref = window.open('LINK_HERE', '_self','location=no');

Try this one, it worked for me
Step1: Add in app browser plugin as

cordova plugin add cordova-plugin-inappbrowser 1.0.2


step2: Add this code in your html page as

<a class="item" href="#" onclick="window.open('http://www.google.com', '_blank', 'location=yes'); return false;">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM