Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Check for mobile device

const isMobile = window.matchMedia("only screen and (max-width: 760px)").matches;if (isMobile) {  //...}
Source by javascript.plainenglish.io #
 
PREVIOUS NEXT
Tagged: #Check #mobile #device
ADD COMMENT
Topic
Name
4+2 =