+ 1
How to get Device Information ?
I want to javascript/PHP code which are execute the device information like: Device Type Device model Browser etc. Anybody have idea ? How write code for get of above said device information.. Please say here Thanks in advance!
8 Answers
+ 2
document.write("Your Screen Size:"+screen.width+"X"+screen.height)
document .write ("<br />")
document .write ("Available W/H:"+screen.availWidth+"X"+screen.availHeight)
document .write ("<br />")
//some screen info by using JS
document .write ("Inner W/H:"+window.innerWidth+"X"+window.innerHeight)
document .write ("<br />")
document .write ("Pixeldepth:"+screen.colorDepth)
document .write ("<br />")
document .write ("Chartset:"+document.charset)
document .write ("<br />")
document .write ("Browser name:"+navigator
.appName )
document .write ("<br />")
document .write ("Platform:"+navigator.platform)
document .write ("<br />")
document .write ("Online:" +navigator.onLine)
document .write ("<br />")
+ 2
đđđ this is too short
https://code.sololearn.com/WApj6OZAFn0n/?ref=app
+ 2
đđđ try this:-
document.write(navigator['appVersion'])
+ 1
+ 1
Thanks bro đ
- 1
ĆÄĆ [Exams] bai,, code is to much lengthy,
I could not understand đ¶
- 1
I need just specific things,
Exmaple :
Device Type
Device model
I dont need extra information of user Device