Client-Side Web Scripting Lecture Notes
Client-Side Web Scripting Lecture Notes
Client-Side Web Scripting Lecture Notes
JavaScript
• developed by Brendan Eich at Netscape Communications as the
scripting language for the Netscape Navigator browser
• formerly called Mocha, then LiveScript, then JavaScript
• standardized by Ecma International as ECMAScript
• latest version: JavaScript 1.8
• common version: JavaScript 1.5, JScript 5.5, ECMAScript v3 (ECMA-
262 3rd edition)
• linked/embedded in web pages using the <script> element
o linked:
<script type=”text/javascript” src=”scripts.js” />
o embedded (either in the <head> or the <body> element):
<script type=”text/javascript”>
<!-- hide script from non-JavaScript browsers...
/* script code goes here... */
// end of script hiding... -->
</script>
• JavaScript + DOM/BOM + CSS + (X)HTML = DHTML