tags:

views:

44

answers:

0

We are going to add a script to our site that checks browser versions to see if they are compatible with SSL 3.0, my DEV team gave me this to implement. From what i understand SSL 3.0 does not work with IE 5 and earlier??

also what i want to do is, instead of a basic javascript alert, maybe create a dialog box with some actual links i can put to the latest version of IE for them to upgrade??

is what i was given below the best tactic?

:

<script type="text/javascript">

var b_version = navigator.appVersion;

if (b_version.indexOf("MSIE 5.5") != -1) {
    requirementsMet = true;
}

if (b_version.indexOf("MSIE 6") != -1) {
    requirementsMet = true;
}

if (b_version.indexOf("MSIE 7") != -1) {
    requirementsMet = true;
}

if (b_version.indexOf("MSIE 8") != -1) {
    requirementsMet = true;
}

if (requirementsMet == false) {
    alert("Your browser does NOT meet requirments for SSL 3.0. You need to upgrade your browser.");
}