Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript v Jscript

Status
Not open for further replies.

crazyboybert

Programmer
Jun 27, 2001
798
GB
Simple Question....

Whats the difference between Javascript and Jscript. When i use Javascript server-side in asp pages i can seemingly substitute 'Javacsript' and 'Jscript' in the script tag with no difference. Can anybody explain if there is a difference, if not why two names, and if there are any cases where it is important to draw the distinction.

My initial guess is that Jscript is a Microsoft only server-side version of Javascript with the same syntax but with some tweaks to allow more server control and to lose the clientside stuff and that the tag is imterpreted by the server as jscript regardless? Is this right?

cheers for any thoughts

rob
 
They are both very similar (there will be some very minor differences) - they both comply with the ECMA-262 standard (they could interchangably be referred to as ECMAScript). JScript is basically "Microsoft Javascript", so called to avoid licensing issues with Netscape.

As for being able to substitute "JScript" with "Javascript" as the specified language in ASP, I'm sure it'll still use exactly the same script engine which ever you pick (it'll actually be the JScript engine, since ASP uses this or the VBScript one as standard). It will simply be unfussy as to what you specify.

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top