Skip to content

Validate the navigator version that's being used to access the website.

Notifications You must be signed in to change notification settings

dblinks/Navigator.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Navigator.js

Validate the navigator version that's being used to access the website.

Usage

First of all, you must import the JavaScript file to your page:

<script src="Navigator.js" type="text/javascript"></script>

And then, use the main function to test the navigator version:

if (!$.Navigator().test()) {
    alert('Update your browser!');
}

You can easily specify the minimum version supported:

if (!$.Navigator().test({ chrome: 40 })) {
    alert('Update your browser!');
}

About

Validate the navigator version that's being used to access the website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published