@SHIBANI06
1. You could use, its a very useful object in many cases
navigator.userAgent or navigator.appVersion
navigator.userAgent or navigator.appVersion
eg:
navigator.userAgent.match(/Android/i) != null
navigator.userAgent.match(/iPhone/i) != null
2. you can also use-
window.matchMedia('o...