Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #13740
| From | helge <w4h@nurfuerspam.de> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Calling browser's system-os |
| Date | 2015-02-23 10:33 +0000 |
| Organization | albasani.net |
| Message-ID | <mcevle$9qe$1@news.albasani.net> (permalink) |
| References | <mccp8d$9bf$1@news.albasani.net> <mcd66t$shi$1@dont-email.me> |
> 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.
Well, check my homepage 'dj1wm.darc.de'.
With Win(7) and IE a mdidifile will be played. That is what I intend.
But using linux and firefox as me (newbie) only a popup shows and asks to
install VLC-player. So what?
Helge
>
> 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 to comp.os.linux.misc | Previous | Next — Previous 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