Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Browser Descrimination - WebTV
[View Sample]
Insert into <HEAD>
<script> if (navigator.appName.indexOf("WebTV") != 0){ alert("You are not a WebTV user and cannot properly view this page. You are now being transfered to a more compatible page"); window.location = "/index.htm" } </script>
Insert into <BODY>
Other Options
To use this script copy this into your <head>Insert in between here</head> tag. You need to change YOUR REDIRECTION PAGE and the alert message if you desire. <script language="JavaScript"> <!-- Hide from old browsers if (navigator.appName.indexOf("WebTV") != 0){ alert("You are not a WebTV user and cannot properly view this page. You are now being transfered to a more compatible page"); window.location = "YOUR REDIRECTION PAGE" } </script> -------------------------------------------------------------------------------- An alert is used to tell the user that they can't view the page. If you don't want that then the code would look like this. <script language="JavaScript"> <!-- Hide from old browsers if (navigator.appName.indexOf("WebTV") != 0){ window.location = "YOUR REDIRECTION PAGE" } </script> -------------------------------------------------------------------------------- If you want this script to work the other way around, and block all WebTV users you should but this in your <head>Insert in between here</head> tag. You need to change YOUR REDIRECTION PAGE and the alert message if you desire. <script language="JavaScript"> <!-- Hide from old browsers if (navigator.appName.indexOf("WebTV") != -1){ alert("You are not a WebTV user and cannot properly view this page. You are now being transfered to a more compatible page"); window.location = "YOUR REDIRECTION PAGE" } </script>