Script Categories

Miscellaneous >>> Browser Check.

It's often necessary to make a script only accessible to the newer browsers (that can support the script without error) and keep older browsers from trying to work with it.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function onlyNewbrowsers() {
browser = (((navigator.appName == "Netscape") &&
parseInt(navigator.appVersion) >= 3 )) ||
navigator.appName == "Microsoft Internet Explorer") &&
parseInt(navigator.appVersion) >= 4 )))
if (browser) {
alert('You are obviously using Netscape 3+ or MSIE 4+.  Older browsers are not allowed to read this.....')}
else {}
// End -->
<FORM ACTION="" onSubmit="onlyNewbrowsers()">
type="submit" Value="New Browsers Only Script">

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!). . Bitcoin Dice Site