How to get Device Information ? | Sololearn: Learn to code for FREE!

+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!

4/3/2021 3:16:26 AM

Sajid Ali

8 Answers

New Answer

+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

try this:- https://code.sololearn.com/W4vC0w43yqNQ/?ref=app

+1

Thanks bro πŸ™

+1

https://code.sololearn.com/WjaR2YXrk8x1/?ref=app

-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