Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    627
    Thanks
    1
    Thanked 20 Times in 20 Posts

    JavaScript Language Level

    I can pick up the JavaScript Version like this:

    <script language="JavaScript1.0">JSver='1.0'</script>
    <script language="JavaScript1.1">JSver='1.1'</script>
    <script language="JavaScript1.2">JSver='1.2'</script>
    <script language="JavaScript1.3">JSver='1.3'</script>

    And I can get the browser level and try to keep up on the association between that and the JS version.

    What I'd like to do is to pick up the current language as a string from within a script. Does anyone know how? Thank you.

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    Carmel California
    Posts
    471
    Thanks
    0
    Thanked 1 Time in 1 Post
    just a question... why would you want to know the javascript version... the only thing I could think of would be to make scripts compatible with multiple browsers, but thats a cheesy unrealiable way to do it since browsers arnt going on some kind of one specific javascript version standard, getting the browser name/version is better since with that you can look up on the internet or in books which things work and how they work on each browser... or easier might be detecting if certain things work (such as if(document.all)). ... And i am pretty sure there is no way to detect the version within the script, ud have to do it the way ur doing it
    Kris Hubby
    kwhubby site

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Last edited by Skyzyx; 10-16-2003 at 05:13 PM.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    627
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Skyzyx, your page was exactly what I was looking for. Thank you.


  •  

    Posting Permissions

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