spacer
Yehuda Shiran November 1, 1999
Detecting WebTV
Tips: November 1999

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
HP to Microsoft: Thanks for Nothing
iPhone Remains Left Out as Android Scores Flash
The Year of Living the OpenSocial
The number of WebTV owners is gradually rising. You might want to use JavaScript to find out if the client is a WebTV system:

if (navigator.appName.indexOf("WebTV") != -1) // WebTV detected
   document.writeln("How do you like that WebTV?");
else // not WebTV
   document.writeln("When are you going to get WebTV?"); 

You can use this technique to redirect WebTV users to a WebTV-optimized version of your site. Furthermore, you can take advantage of this sniffer to overcome various bugs in the WebTV implementation of JavaScript.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script · Book Review: Content Rich
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Gateway Launches New Core i7-powered FX-Series Gaming PCs · Review: Lenovo ThinkPad SL300 · EBay, Alternative Site Holiday Resources for Sellers