- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the code for opening a link from my app, best for updated version of intel xdk and cordova plugin. I am using a cross-website.
Currently this is my code, but ain't work'n.
<script> function join_browser(){ var ref = window.open('https://www.mysite.com/join', '_blank', 'location=yes'); ref.addEventListener('loadstart', function(event) { alert('start: ' + event.url); }); ref.addEventListener('loadstop', function(event) { alert('stop: ' + event.url); }); ref.addEventListener('loaderror', function(event) { alert('error: ' + event.message); }); ref.addEventListener('exit', function(event) { alert(event.type); }); } </script> <label class="text-style text-center">No account? <a href="#" onclick="join_browser(); return false;"> Register here. </a> </label>
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In order to display a web page in your application, I recommend using the https://www.npmjs.com/package/cordova-plugin-inappbrowser Cordova plugin. You can find examples their as well. This plugin is part of the Core Plugins in Intel XDK currently.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page