Path: csiph.com!weretis.net!feeder4.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.100.225.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: detect a phone Date: Sun, 27 Aug 2017 15:15:56 +0200 Organization: PointedEars Software (PES) Lines: 22 Message-ID: <2918958.44csPzL39Z@PointedEars.de> References: <1476139f4sckg$.1gbfz2yz2pha8$.dlg@40tude.net> <4031972.LvFx2qVVIh@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Injection-Info: gwaiyur.mb-net.net; posting-host="100.225.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch:178.197.225.100"; logging-data="30993"; mail-complaints-to="abuse@open-news-network.org" User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On 27/08/2017 12:00 PM, Thomas 'PointedEars' Lahn wrote: >> Andrew Poulos wrote: >>> What phone do you have? >> For real, Samsung Galaxy S7. BrowserStack has others. > > Ok, so what does window.screen.width and window.screen.height return? It is _not_ `window.screen.width` and `window.screen.height`; it is `screen.width` and `screen.height`. `screen` is a host-defined property of the global object which just happens to be mirrored by the value of the global object’s host-defined `window` property. As to what those properties mean (only *methods* have a return value): AISB, it depends, and with regard to your problem it is irrelevant except that the values are not reliable. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.