Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #13733
| From | Bobbie Sellers <bliss-sf4ever@dslextreme.com> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Calling browser's system-os |
| Date | 2015-02-22 11:07 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <mcd9cs$a2j$1@dont-email.me> (permalink) |
| References | <mccp8d$9bf$1@news.albasani.net> <mcd66t$shi$1@dont-email.me> |
On 02/22/2015 10:13 AM, Tauno Voipio wrote:
> On 22.2.15 16:31, helge wrote:
>> Hi NG!
>> Ubuntu 12.04 LTS
>> How to check in an index.html if the calling browser's system-os is linux
>> or one of the many windows species?
>> Vy 73! Helge
>>
>
> Would you please tell why? IMHO, a more useful piece of information
> is the browser type and version.
>
> Try this:
>
> // This script sets OSName variable as follows:
> // "Windows" for all versions of Windows
> // "MacOS" for all versions of Macintosh OS
> // "Linux" for all versions of Linux
> // "UNIX" for all other UNIX flavors
> // "Unknown OS" indicates failure to detect the OS
>
> var OSName="Unknown OS";
> if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
> if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
> if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
> if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
>
> document.write('Your OS: '+OSName);
>
Back in ancient days like 15 years ago web-browsing on the Amiga
with AWeb the OS and the browser could not be detected by the sites
or even by the testing sites. That was fine with me. But even then
the AWeb browser could spoof Windows if I cared to configure a setting
that way. Those days I was thrilled to inherit a 28.8 kb modem and
thought the millennium had arrived when I got a 56 kb modem.
bliss
bliss
bliss
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Calling browser's system-os helge <w4h@nurfuerspam.de> - 2015-02-22 14:31 +0000
Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 08:49 -0600
Re: Calling browser's system-os Roland Latour <no-one@nowhere.com> - 2015-02-22 09:38 -0600
Re: Calling browser's system-os Michael Black <et472@ncf.ca> - 2015-02-22 11:06 -0500
Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 10:21 -0600
Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-22 18:52 +0000
Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 16:43 -0600
Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-22 22:59 +0000
Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 19:23 -0600
Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-23 07:31 +0000
Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-23 07:10 -0600
Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-23 13:16 +0000
Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-22 18:51 +0000
Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 16:43 -0600
Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-22 22:58 +0000
Re: Calling browser's system-os Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-02-22 20:13 +0200
Re: Calling browser's system-os Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2015-02-22 11:07 -0800
Re: Calling browser's system-os Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-02-23 20:51 +0000
Re: Calling browser's system-os helge <w4h@nurfuerspam.de> - 2015-02-23 10:33 +0000
csiph-web