Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

check if browser is chrome mobile

$(document).ready(function(){
    var ua = navigator.userAgent;

    if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(ua))
       $('a.mobile-other').show();

    else if(/Chrome/i.test(ua))
       $('a.chrome').show();

    else
       $('a.desktop-other').show();
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: daysjs 
Javascript :: column cannot be cast automatically to type bigint postgres sequelize 
Javascript :: sorting algorithms in node.js 
Javascript :: create expo project with a specific expo SDK 
Javascript :: regex match between quotes without escape 
Javascript :: dynamic classes in react 
Javascript :: #{} js 
Javascript :: how to define width with [styles] in percentage in angular 
Javascript :: comparing html text by using jquery 
Javascript :: d3.js on click event 
Javascript :: form serialze submit button 
Javascript :: react google places auto complete example 
Javascript :: how to check if a letter is capital in javascript 
Javascript :: using connect flash 
Javascript :: javascript subtract years from date 
Javascript :: react navigation 
Javascript :: get search value from reacr route 
Javascript :: javascript submit form VUE 
Javascript :: javascript sanitize html 
Javascript :: install node specific version ubuntu 
Javascript :: javascript sort array by column 
Javascript :: faker js uuid example 
Javascript :: js reverse 
Javascript :: JSE Data 
Javascript :: elixir guards 
Javascript :: remove element array javascript 
Javascript :: react document viewer 
Javascript :: The reduce() method executes a reducer function on each element of the array and returns a single output value. 
Javascript :: how to manually trigger browser back button from angular 
Javascript :: Selectores de jQuery CSS básicos 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =