Revision for “JavaScript (JS)” created on February 26, 2015 @ 10:40:11
|
JavaScript (JS)
|
|
JavaScript (JS) is most commonly used as a client side scripting language, this means that JS is written into an <a title="HTML" href="http://code.emrysproductions.com/wiki/html/">HTML</a> page.
JavaScript and Java are completely different languages, both in concept and design. JS was invented by Brendan Eich in 1995, and became an ECMA standard in 1997. ECMA-262 is the official name, ECMAScript 5 (JavaScript 1.8.5 – July 2010) is the latest standard. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and it’s up to the browser to do something with it. It has a variety of different uses in web technology, such as: <strong>HTML Attribute changing</strong> <iframe src="//jsfiddle.net/mapster86/fxyc4t4z/1/embedded/result,html,js" width="100%" height="300" frameborder="0" allowfullscreen="allowfullscreen"></iframe> <strong>Search Box Auto-complete (e.g. Google, Bing, Twitter, Facebook etc.)</strong> <strong>Games</strong> <iframe src="//jsfiddle.net/mapster86/kv1j66j3/2/embedded/result,html,css,js" width="100%" height="300" frameborder="0" allowfullscreen="allowfullscreen"></iframe> Automatically updating information on a web page without user interaction (e.g. Football scores, Twitter feed, Facebook Timeline.) <strong>Data Validation (e.g. checking information is correct on a sign up form.)</strong> <iframe src="//jsfiddle.net/mapster86/L6t6zovf/embedded/result,html,css,js" width="100%" height="300" frameborder="0" allowfullscreen="allowfullscreen"></iframe> |