Is the logic correct to detect IE version..plz let me know

Is the logic correct to detect IE version..plz let me know

<html>
<head>
<script type="text/javascript">
function checkIEVersion()
{
var IE_Version;
var IE_Engine;
/*@cc_on
    @if( @_jscript_version < 9 )
    {
        if( @_jscript_version >= 5.8 )
            IE_Version = "8";
        else if( @_jscript_version >= 5.7 )
        {
            if( window.XMLHttpRequest )
                IE_Version = "7";
            else
                IE_Version = "6";
        }
        else if( @_jscript_version >= 5.6 )
            IE_Version = "6";
        else if( @_jscript_version >= 5.5 )
            IE_Version = "5.5";
        else if( @_jscript_version >= 5.1 )
            IE_Version = "5";
        else if( @_jscript_version >= 3 )
            IE_Version = "4";
        else
            IE_Version = "3";
    }
    alert("IE_Version.."+IE_Version);
    @else
    {
        IE_Version = @_jscript_version;
    }
    @end
@*/
if(IE_Version)
{
    IE_Engine = parseFloat(navigator.appVersion);
}
}
</script>
</head>
<body>
<form>
<input type="button" value="Click me!" onclick="checkIEVersion()" />
</form>
</body>
</html>
View Answers

Ads









Related Tutorials/Questions & Answers:
Is the logic correct to detect IE version..plz let me know
Is the logic correct to detect IE version..plz let me know  <... checkIEVersion() { var IE_Version; var IE_Engine; /*@cc_on @if( @_jscript_version < 9 ) { if( @_jscript_version >= 5.8 ) IE_Version
compile this program and let me know the resolution
compile this program and let me know the resolution  class Maxof2{ public static void main(String args[]){ //taking value as command line...+" is greater than "+i); } } please compile and let me know the resolution  
Advertisements
hi,i'am new to Jsp.Can some one please let me know an answer for this question?
hi,i'am new to Jsp.Can some one please let me know an answer for this question?  how do we upload an xml file and validate them against WIPO DTD
plz Help me find the correct programs answers
plz Help me find the correct programs answers   Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff... INDICA" and "TATA NANO" respectively. Plz mail me your answers
I didn't gat an output for this code, plz send me a correct code
I didn't gat an output for this code, plz send me a correct code  Hi, Here is my code: import java.awt.event.*; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import javax.swing.*; import java.sql.*; public
please let me get code how to insert a data to mysql using setter and getter method by using java
please let me get code how to insert a data to mysql using setter and getter method by using java  please let me get code how to insert a data to mysql using setter and getter method by using java pelease let me have the code
please let me get code how to insert a data to mysql using setter and getter method by using java
please let me get code how to insert a data to mysql using setter and getter method by using java  please let me get code how to insert a data to mysql using setter and getter method by using java pelease let me have the code
autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me
autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me   Hi have develop the jsp to populate... filed?. Please help me Thanks
LOGIC
LOGIC  hey guys..i have my exams coming in somedays and it would be really helpful if someone explained how to develop the logic of any program
LOGIC
LOGIC  hey guys..i have my exams coming in somedays and it would be really helpful if someone explained how to develop the logic of any program
detect tap on uiimageview
detect tap on uiimageview  detect tap on uiimageview UIScrollView. Thanks
Launch of Toolbar in IE - WebSevices
Launch of Toolbar in IE  "I have created a toolbar with Java Swing I would like to know the steps about how to launch the toolbar in IE
I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please show me my way.....
I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please show me my way.....  I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please
ModuleNotFoundError: No module named 'detect'
ModuleNotFoundError: No module named 'detect'  Hi, My Python... 'detect' How to remove the ModuleNotFoundError: No module named 'detect'... to install padas library. You can install detect python with following command
ModuleNotFoundError: No module named 'let'
ModuleNotFoundError: No module named 'let'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'let' How to remove the ModuleNotFoundError: No module named 'let' error
ModuleNotFoundError: No module named 'let'
ModuleNotFoundError: No module named 'let'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'let' How to remove the ModuleNotFoundError: No module named 'let' error
i want to know how a slide will hide
will be hide.. and here im using logic iterate to getting the values from action class.. please if u know any answer regarding this tell me...i want to know how a slide will hide  when im click on the button
i want to know how a slide will hide
will be hide.. and here im using logic iterate to getting the values from action class.. please if u know any answer regarding this tell me...i want to know how a slide will hide  when im click on the button
Logic and desgin
Logic and desgin  How would this be put in visual logic symbol
ModuleNotFoundError: No module named 'ie'
ModuleNotFoundError: No module named 'ie'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ie' How to remove the ModuleNotFoundError: No module named 'ie' error
mahesh want to know java with good understanding
mahesh want to know java with good understanding  I need to know... an example program and it's output also.please teach me...   Java Beans are reusable components. They are used to separate Business logic from the Presentation
ModuleNotFoundError: No module named 'alibi-detect'
ModuleNotFoundError: No module named 'alibi-detect'  Hi, My Python... 'alibi-detect' How to remove the ModuleNotFoundError: No module named 'alibi-detect' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'alibi-detect'
ModuleNotFoundError: No module named 'alibi-detect'  Hi, My Python... 'alibi-detect' How to remove the ModuleNotFoundError: No module named 'alibi-detect' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'cloud-detect'
ModuleNotFoundError: No module named 'cloud-detect'  Hi, My Python... 'cloud-detect' How to remove the ModuleNotFoundError: No module named 'cloud-detect' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'community_detect'
ModuleNotFoundError: No module named 'community_detect'  Hi, My... named 'community_detect' How to remove the ModuleNotFoundError: No module named 'community_detect' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'community_detect'
ModuleNotFoundError: No module named 'community_detect'  Hi, My... named 'community_detect' How to remove the ModuleNotFoundError: No module named 'community_detect' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'detect-attacks'
ModuleNotFoundError: No module named 'detect-attacks'  Hi, My... named 'detect-attacks' How to remove the ModuleNotFoundError: No module named 'detect-attacks' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'detect-delimiter'
ModuleNotFoundError: No module named 'detect-delimiter'  Hi, My... named 'detect-delimiter' How to remove the ModuleNotFoundError: No module named 'detect-delimiter' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'detect-duplicate'
ModuleNotFoundError: No module named 'detect-duplicate'  Hi, My... named 'detect-duplicate' How to remove the ModuleNotFoundError: No module named 'detect-duplicate' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'detect-secrets'
ModuleNotFoundError: No module named 'detect-secrets'  Hi, My... named 'detect-secrets' How to remove the ModuleNotFoundError: No module named 'detect-secrets' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'detect-wechat'
ModuleNotFoundError: No module named 'detect-wechat'  Hi, My... 'detect-wechat' How to remove the ModuleNotFoundError: No module named 'detect-wechat' error? Thanks   Hi, In your python

Ads