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

  • Home
  • SEARCH
  • 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 6166403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:20:00+00:00 2026-05-23T22:20:00+00:00

The window.setTimeout reference for IE states that setTimeout has an optional third parameter defining

  • 0

The window.setTimeout reference for IE states that setTimeout has an optional third parameter defining the language.

The possible languages are JScript, VBScript and JavaScript.

I already know IE can parse VBScript but

How does IE parse JavaScript differently from JScript?

Personally I thought the dialect of EcmaScript that IE parsers and runs was called JScript.

[Edit]

As mentioned by people it appears that Microsoft labels their ES3 engine as “JScript” and their ES5 engine as “JavaScript”. The ES5 engine is in IE9.

Can we use their ES3 engine in IE9 by passing in "JScript" to setTimeout ?

  • 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-23T22:20:00+00:00Added an answer on May 23, 2026 at 10:20 pm

    Personally I thought the dialect of EcmaScript that IE parsers and runs was called JScript.

    It is. The “JScript” and “JavaScript” values for the third parameter are just synonyms. I can’t find a reference for it, but you can be quite certain IE doesn’t have two separate interpreters lying around, one that has JScript-isms and one that doesn’t.

    And here’s the proof: If you run this in IE9 (live copy):

    HTML:

    <input type='button' id='btnJScript' value='JScript'>
    <input type='button' id='btnJavaScript' value='JavaScript'>
    

    JavaScript:

    window.onload = function() {
    
      document.getElementById('btnJScript').onclick = function() {
        testIt("JScript");
      };
      document.getElementById('btnJavaScript').onclick = function() {
        testIt("JavaScript");
      };
    
      function testIt(lang) {
        var s = "var a = [1, 2, ]; display(a.length);";
        display("Calling <code>setTimeout</code> with <code>'" +
                s + "', 0, '" + lang + "'</code>");
        setTimeout(s, 0,lang);
      }
    };
    
    function display(msg) {
      var p = document.createElement('p');
      p.innerHTML = msg;
      document.body.appendChild(p);
    }
    

    In both cases, you get the output “2” displayed by the eval’d setTimeout string. But in JScript, even the most recent version in IE8, that trailing comma would mean the array had three entries, not two. Details on that here. Thus, IE9 is using its latest interpreter in both cases, not downshifting to “JScript” in some way if you pass “JScript” as the third parameter.

    Update: And similarly (I just fired up my IE8 box), if you run this on IE8 you get “3” in both cases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my experiment, I have seen that even after window.onload event, window.setTimeout is required
I have a WPF Window which has a among other controls hosts a Frame.
Ok, Im wondering if it is possible to transfer the reference of the object
I'm writing a JavaSCript class that has a method that recursively calls itself. Scheduler.prototype.updateTimer
var my_new_function = function(){ ---- }; window.setTimeout(my_new_function, 1600); the above works properly without any
I'm trying to open a new window like so: $('#wrapper').click(function() { window.setTimeout(function() { //alert('hi');
For some reason, the window.setTimeout(update, 5000); does not work. It does not retry the
Which one of these two ways is faster and why? window.setTimeout(func(), 100); Or window.setTimeout(function(){func();},
i'm currently have a problem by using the SetTimeOut function. The thing is that
My client's site has notification feature. With that I mean that whenever something happen,

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.