Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Is the logic correct to detect IE version..plz let me know
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


pawan hosur
Is the logic correct to detect IE version..plz let me know
0 Answer(s)      2 years and 11 months ago
Posted in : Java Beginners


<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>

Advertisement
View Answers

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
Please check it and let me know - Java Beginners
Please check it and let me know  Hi friends, your las suggession is not ok becoz this code give some error and problem,Today i m sending all code and requirement please check it and solve again thanks Requirements:- I
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
detect tap on uiimageview
detect tap on uiimageview  detect tap on uiimageview UIScrollView. Thanks
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
Clear Question plz et me know immediately - Java Beginners
Clear Question plz et me know immediately   Hi Deepak your application is good,pls modify this application and let me know My problem is that, Steps: 1:- A form have three 3 button delete,insert,edit. 2
Pleae help me to give logic and code for this program - Java Beginners
Pleae help me to give logic and code for this program  Write a function that given the string ?original? create a new string ?dramatic? that has two consecutive copies of each letter from the original string. For example
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
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
How to detect system failure using java code - Java Beginners
How to detect system failure using java code  I am doing a project... to detect the process that make failure. I have no idea about the project so please help me. And i need some site to download java source code
tell me i don't know about cms and history - Java Interview Questions
tell me i don't know about cms and history  what is cms,when can it is used ,what are the advantages and what are the more information about CMS
Logic and desgin
Logic and desgin  How would this be put in visual logic symbol
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
Logic Building
Logic Building  I wanted to devlop my logic ? How can i do so ? Can i start with java or i need to do c++ before
Logic and Degin
Logic and Degin  Need help in writing a pseudocode for this can so please help me with this just need to get started. In this lab, you are going to extend the Fireworks Checkout Stand application in Week 6. This week, we
Logic Iterate.
Logic Iterate.  I have one doubt about logic:iterate. I use text feild inside of logic:iterate , there is possible will generate N no of rows... = document.formName.someProperty[0].value; Any Help Plz
Logic Iterate.
Logic Iterate.  logic iterate Struts I have one doubt about logic:iterate. I use text field inside of logic:iterate , there is possible... the Particular rows text value. for example: print("<logic:iterate id="xid
logic-iterate
logic-iterate  in my code i am using for-each loop for displaying data i want use tag to display data how to use plase help me <%@ page import="java.sql.*" %> <%String[] id = (String[])session.getAttribute("ids
Logic and Design
Logic and Design  Please help me with this Write a program that prompts and accepts a number between 1 and 12. After getting the input, display the number with the appropriate month. (example: This is the 1st month¦January
Create toolbars for IE
Create toolbars for IE  how to create a ie toolbar in java script
Ajax in IE 7 - Ajax
Ajax in IE 7  My AJAX function does not update on IE 7. What can I do... compatability code for IE.that is //for other than IE browser if(window.XMLHttpRequest...) { try{ http_request=new ActionObject("Msxml1.XMLHTTP");//this is for old IE
Business logic vs Presentation logic - JSP-Servlet
Business logic vs Presentation logic  what is the difference between Business logic and Presentation logic
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
correct the sql error
correct the sql error  i am getting a SQL Error while retriving data from access to jframe called "datatype mismatch in criteria expression" plez do help me and studentId's datatye is number...... private void
Drop Down reload in IE
loads to 1 which is first value..This is the problem im facing in IE but it works well in Firefox..How to overcome this IE issue? thx in advance
PHP header IE - PHP
; but this is not working for IE. any Idea
About Web-Logic
the Web-Logic with Tomcat 5.0 version in Console. Somebody has suggested to see the webpage (they had given the link).But when i installed the Web-Logic i culdn't find META-INF directory . So Kindly tell me where Will be the META-INF
logic for pattern program
logic for pattern program  what's the logic for create pattern... 12341234 5678789 123321 1234512345 etc. i want know that how can i create this program in java without help whats the logic how can i understand
Advertisements
 

 

 

DMCA.com