Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33886

Re: detect a phone

Newsgroups comp.lang.javascript
Date 2017-08-26 16:31 -0700
References <WoqdnVwVzJe7ozzEnZ2dnUU7-YvNnZ2d@westnet.com.au> <ca60a39e-fd1b-44f4-be5a-6cec08f99d30@googlegroups.com> <MZ6dnZymMJoiZzzEnZ2dnUU7-Q-dnZ2d@westnet.com.au>
Message-ID <514e1fc2-89ea-434d-8575-cf71a893d14c@googlegroups.com> (permalink)
Subject Re: detect a phone
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


Andrew Poulos wrote:

> Ultimately I need to know if the screen is small.

I think document.documentElement.clientWidth and document.documentElement.clientHeight is most appropriate here. 

Additional information: <https://www.quirksmode.org/mobile/viewports2.html>

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

detect a phone Andrew Poulos <ap_prog@hotmail.com> - 2017-08-26 19:23 +1000
  Re: detect a phone "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-08-26 11:44 +0200
    Re: detect a phone Andrew Poulos <ap_prog@hotmail.com> - 2017-08-27 00:09 +1000
      Re: detect a phone "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-08-26 20:02 +0200
  Re: detect a phone Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2017-08-26 20:42 +0800
  Re: detect a phone "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-08-26 09:40 -0700
    Re: detect a phone Andrew Poulos <ap_prog@hotmail.com> - 2017-08-27 08:48 +1000
      Re: detect a phone "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-08-26 16:31 -0700
      Re: detect a phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-27 03:35 +0200
  Re: detect a phone JJ <jj4public@vfemail.net> - 2017-08-27 00:03 +0700
    Re: detect a phone Andrew Poulos <ap_prog@hotmail.com> - 2017-08-27 08:21 +1000
      Re: detect a phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-27 04:00 +0200
        Re: detect a phone Andrew Poulos <ap_prog@hotmail.com> - 2017-08-27 18:13 +1000
          Re: detect a phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-27 15:15 +0200
    Re: detect a phone Mark Lloyd <not@mail.invalid> - 2017-08-27 11:30 -0500
  Re: detect a phone Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-27 03:33 +0200

csiph-web