Is it possible for a hyperlink to launch a browser?

4 posts, 0 answers
  1. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 10 Feb 2014 Link to this post

    In my app's help section there is a link to our company website, right now the link will open within the app webview which I think is the default behavior.  Is it possible for a link to instead launch a browser session?  The only thing I've tried is adding target=_blank to the <a> but that didn't have any impact. 
  2. Michael
    Michael avatar
    151 posts
    Member since:
    Jan 2012

    Posted 11 Feb 2014 in reply to Kjell Link to this post

    onclick="window.plugins.childBrowser.showWebPage('http://....');"

    enable the Child Browser integrated plugin, and add:: <script src="Plugins/Child Browser/childbrowser.js"></script>

    ignore the path warning. AppBuilder denies the existence of that file even though it works perfectly fine.
  3. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 11 Feb 2014 in reply to Michael Link to this post

    Ah that was too easy, thanks Michael
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Feb 2014 Link to this post

    Hi Kjell,

    Childbrowser is deprecated in Cordova 2.8, so you would not be able to use it in projects targeting later version of Cordova. For such projects, you should utilize the InAppBrowser core Cordova plugin.

    Regards,
    Steve
    Telerik
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
Back to Top