简体   繁体   中英

Cordova: use window.open in child browser

I have a requirement of showing pdf on click of a link in child browser, how can I achieve it? I'm using iOS and Android apps created using cordova

Add cordova-plugin-inappbrowser Plugin


var wsUrl = "your PDF URL";
window.open(wsUrl, '_blank');

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