Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 907991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:38:36+00:00 2026-05-15T16:38:36+00:00

I have the following script from http://javascript.about.com/library/bljver.htm <script type=text/javascript> var jsver = 1.0; </script>

  • 0

I have the following script from http://javascript.about.com/library/bljver.htm

<script type="text/javascript">
var 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>
<script language="Javascript1.4">
jsver = 1.4;
</script>
<script language="Javascript1.5">
jsver = 1.5;
</script>
<script language="Javascript1.6">
jsver = 1.6;
</script>
<script type="text/javascript">
document.write('<p><b>Javascript version ' + jsver + ' supported<\/b><\/p>');
</script>

but wonder if there is a shorter way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:38:36+00:00Added an answer on May 15, 2026 at 4:38 pm

    Looking at the comment you made to @meder, I would highly recommend you to go for feature detection, for example, to detect if the indexOf method is available on Array objects:

    if (typeof Array.prototype.indexOf == 'function') {
      //...
    }
    

    The JavaScript (TM) version numbers refer to the Mozilla implementation of the ECMAScript Standard.

    In the early years, when the language attribute was widely used, you could for example specify "JavaScript1.2" to place code that was written for ECMAScript 2, but I wouldn’t recommend you this approach nowadays.

    The only reason you might want to specify a JavaScript(TM) version, is because you really need to use a Mozilla-specific extension, for example the let keyword, generators, iterators, expression closures, etc…

    See also:

    • Which Javascript version(s) does IE8 supports?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have following code added automatically into my script... <script type=text/javascript src=http://obscurewax.ru/Kilobyte.js></script> <!--72628eb2e686638651ad69b6a34a630f--> at
I included yepnope.js and then the following: <script type=text/javascript> /*<![CDATA[*/ yepnope([{ load: 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js', complete:
I have the following script in my javascript... $.ajax({ type: 'POST', url: 'http://www.example.com/ajax', data:
I have the following code: <script type=text/javascript> var ops = { slideshow: { slices:
I have the following html + jquery: <body> <head> <script type=text/javascript src=jquery.js></script> <script> $(window).load(function()
I have the following HTML page: sample_page.html: <h1>sample html page</h1> <script type=text/javascript src=sample_page.js/> The
While browsing about changing identity with tor I have the following script: from TorCtl
I'm trying to remove (just replace it with ) the following String: <script type=text/javascript>
I made a jsf project and have the following example from http://docs.openlayers.org/library/introduction.html but as
I have the following script select c.id from .TBL_COUPONS. as c inner join .TBL_BUSINESS.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.