Results 1 to 3 of 3

Thread: How to find a version?

  1. #1

    Thread Starter
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446

    How to find a version?

    how to find the Javascript version using javascrit code..?
    any idea?

    thanks
    prasad

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    I found this floating around, seems like a bit of a crap way to go about it mind

    Code:
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    jsver = "1.0";
    // End -->
    </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript1.1">
    <!-- Begin
    jsver = "1.1";
    // End -->
    </SCRIPT>
    <SCRIPT Language="JavaScript1.2">
    <!-- Begin
    jsver = "1.2";
    // End -->
    </SCRIPT>
    <SCRIPT Language="JavaScript1.3">
    <!-- Begin
    jsver = "1.3";
    // End -->
    </SCRIPT>
    
    <BODY>
    
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    document.write("<B>Your browser supports JavaScript version " + jsver + ".</B>")
    // End -->
    </SCRIPT>
    
    </body>
    </html>

  3. #3

    Thread Starter
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446
    don't we have a special script to find a version insted of this hard coding..?
    prasad

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width