Javascript detect mobile browser
JavaScript
function isMobileDevice() {
var check = false;
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera);
return check;
};
Also in JavaScript:
- Title
- Arranging Coins
- Category
- JavaScript
- Title
- fonction fleche javascript
- Category
- JavaScript
- Title
- async await anonymous function
- Category
- JavaScript
- Title
- how to make an async function
- Category
- JavaScript
- Title
- angular cli create component
- Category
- JavaScript
- Title
- html to json
- Category
- JavaScript
- Title
- async await arrow function
- Category
- JavaScript
- Title
- flask get summernote text
- Category
- JavaScript
- Title
- int cating javascript
- Category
- JavaScript
- Title
- Alternating Sums
- Category
- JavaScript
- Title
- Angular watching for changes in $http.pendingRequests from directive
- Category
- JavaScript
- Title
- jason rpc reactjs
- Category
- JavaScript
- Title
- how to check if something is array javascript
- Category
- JavaScript
- Title
- get value onChange from mat-select angular
- Category
- JavaScript
- Title
- fizzbuzz js
- Category
- JavaScript
- Title
- get value javascript
- Category
- JavaScript
- Title
- how to play sound on load js
- Category
- JavaScript
- Title
- 'Link' is not defined react/jsx-no-undef
- Category
- JavaScript
- Title
- fetch response json or text
- Category
- JavaScript
- Title
- how to make a circle in js
- Category
- JavaScript
- Title
- Basic JavaScript: Use Recursion to Create a Range of Numbers
- Category
- JavaScript
- Title
- create dice game javascript
- Category
- JavaScript
- Title
- format date javascript
- Category
- JavaScript
- Title
- find intersection between two object arrays javascript
- Category
- JavaScript
- Title
- discord.js multiple embeds
- Category
- JavaScript
- Title
- credit card mask js
- Category
- JavaScript
- Title
- javascript check string lenght
- Category
- JavaScript
- Title
- call javascript function from html
- Category
- JavaScript
- Title
- how to get today date in javascript
- Category
- JavaScript
- Title
- define two variables in one line javascript
- Category
- JavaScript
- Title
- 2gis nuxt
- Category
- JavaScript
- Title
- form submit programmatically
- Category
- JavaScript
- Title
- add element to array javascript
- Category
- JavaScript
- Title
- funcion dentro de objeto
- Category
- JavaScript
- Title
- cache buster in angular application
- Category
- JavaScript
- Title
- how to make one line if in js
- Category
- JavaScript
- Title
- fizz buzz javascript
- Category
- JavaScript
- Title
- iterate through list javascript
- Category
- JavaScript
- Title
- banking program deposit and withdrawal using ajax call
- Category
- JavaScript
- Title
- how to use style in react js
- Category
- JavaScript
- Title
- how to update node.js on linux
- Category
- JavaScript
- Title
- how to change the color using js
- Category
- JavaScript
- Title
- (function (g, d, a) {})(window, document, jQuery);
- Category
- JavaScript
- Title
- get value of hidden field jquery
- Category
- JavaScript
- Title
- create array javascript
- Category
- JavaScript
- Title
- import json file javascript
- Category
- JavaScript
- Title
- closure javascript
- Category
- JavaScript
- Title
- for each js
- Category
- JavaScript
- Title
- error sending empty object express
- Category
- JavaScript
- Title
- is sublime text a good editor
- Category
- JavaScript
- Title
- angular http client
- Category
- JavaScript
- Title
- assign freemarker expressions to variables
- Category
- JavaScript
- Title
- express middleware pass parameter
- Category
- JavaScript
- Title
- javascript array push
- Category
- JavaScript
- Title
- disable input angular
- Category
- JavaScript
- Title
- format a date moment
- Category
- JavaScript
- Title
- hackerrank fizzbuzz javascript
- Category
- JavaScript
- Title
- autocomplete list angular 8 material
- Category
- JavaScript
- Title
- how to find length of array in javascript without using length method
- Category
- JavaScript
- Title
- getters and setters javascript
- Category
- JavaScript
- Title
- javascript adding an array to an array
- Category
- JavaScript
- Title
- convert base64 to uint8array javascript
- Category
- JavaScript
- Title
- funcao com o botao esc do teclado javascript
- Category
- JavaScript
- Title
- filtering json array in javascript
- Category
- JavaScript
- Title
- array map javascript mozilla
- Category
- JavaScript
- Title
- firefox extension make ajax request
- Category
- JavaScript
- Title
- convert jquery to string
- Category
- JavaScript
- Title
- axios set authorization header
- Category
- JavaScript
- Title
- how to run mocha tests on asynchronous functions in script
- Category
- JavaScript
- Title
- how to attach javascript to html
- Category
- JavaScript
- Title
- alternate color to table row jquery
- Category
- JavaScript
- Title
- finding an element ina na array in js
- Category
- JavaScript
- Title
- how to handle two url in one route in react
- Category
- JavaScript
- Title
- going through every attributes of an object javascript
- Category
- JavaScript
- Title
- comment obtenir l'élément parent javascript
- Category
- JavaScript
- Title
- divide intagers javascript
- Category
- JavaScript
- Title
- getelementbyid
- Category
- JavaScript
- Title
- if mousepressed javascript
- Category
- JavaScript
- Title
- how to display date in javascript
- Category
- JavaScript
- Title
- How to check whether a string contains a substring in JavaScript?
- Category
- JavaScript
- Title
- how to check if object is undefined in javascript
- Category
- JavaScript
- Title
- check the doc name in javascript
- Category
- JavaScript
- Title
- check palindrome js
- Category
- JavaScript
- Title
- google cdn jquery
- Category
- JavaScript
- Title
- check if localstorage key exists js
- Category
- JavaScript
- Title
- event listener on parent not on childjavascript
- Category
- JavaScript
- Title
- can you do a join() in js without the commas
- Category
- JavaScript
- Title
- How to insert an item into an array at a specific index JavaScript
- Category
- JavaScript
- Title
- deep clone array in javascript
- Category
- JavaScript
- Title
- async await javascript push
- Category
- JavaScript
- Title
- how to start react
- Category
- JavaScript
- Title
- javascript array methods
- Category
- JavaScript
- Title
- how to find out what a string ends with in javascript
- Category
- JavaScript
- Title
- javascript append to object
- Category
- JavaScript
- Title
- div background image chnage uisng js
- Category
- JavaScript
- Title
- display none after hover
- Category
- JavaScript
- Title
- how to get mouse coordinates in javascript
- Category
- JavaScript
- Title
- convert 2 lists to json python
- Category
- JavaScript
- Title
- all fields entered jquery enable submit button
- Category
- JavaScript
- Title
- graal.js javascript array in java
- Category
- JavaScript