//JavaScript on your website: if (navigator.userAgent.indexOf('gonative') > -1) { //run a JavaScript Bridge command only when in the app window.location.href = 'gonative://module/command?parameter=true'; //or gonative.module.command({'parameter':true}); //hide/show elements within the app $('.mobileNav').hide(); $('.appOnly').show(); }