Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

user agent javascript

console.log(window.navigator.userAgent)
// Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Comment

get user agent in js

if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i))
Comment

PREVIOUS NEXT
Code Example
Javascript :: react native clear route params 
Javascript :: js string interpolation 
Javascript :: operators in js 
Javascript :: add items to a react array in hooks 
Javascript :: post request with headers 
Javascript :: convert string to camelcase 
Javascript :: call multiple functions onclick react 
Javascript :: jquery on multiple events 
Javascript :: jquery selector class child 
Javascript :: try and catch express 
Javascript :: foreach in react 
Javascript :: javascript countdown 
Javascript :: javascript array read object value in array 
Javascript :: hti laravel route from javascript file 
Javascript :: Open temporary webpage js 
Javascript :: react native refresh flatlist on swipe down 
Javascript :: javascript sort array of objects by value of key in object 
Javascript :: clear form inside modal after close reactjs 
Javascript :: camelcase 
Javascript :: javascript date set hours minutes seconds to 0 
Javascript :: ternary operator jquery 
Javascript :: ngmodel component angular 
Javascript :: javascript check date is greater than today 
Javascript :: html anchor tag javascript confirm 
Javascript :: angular disable select dropdown 
Javascript :: sequelize include twice 
Javascript :: String variable props 
Javascript :: moment clone 
Javascript :: javascript map array 
Javascript :: javascript get second last element of array 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =