-
May 24th, 2018, 11:19 AM
#1
Screen.width property discrepancy.
I'm trying following simple JavaScript code:
Code:
alert(screen.width);
On my Samsung A5(2017) smartphone. The specs for my device screen is `1080 x 1920` pixels while the alert reports me only `360` as `screen.width` value. My question is why there is such discrepancy between the vale of specs and the valeu returned by the code?
Last edited by PeejAvery; June 4th, 2018 at 10:19 PM.
Reason: Changed prefix
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|