University of Sydney_INFO1003_Foundamental of IT_2012 Semester 2
26/08/2012
What is JavaScript? Scripting Language JavaScript is available in two formats: client-side client side JavaScript and server-side JavaScript. Client-side execution refers to a program running on a local browser (the client) instead of on a server. Gives web pages more interactivityAnimations Actions responding to user input Form Validation Control look and feel of browser Managing Cookies5
JavaScript Syntax JavaScript is encoded inside your HTML Document. <script> and</script> to tell where the JavaScript starts and ends– also called“a a script block” block .<html><head><title> My JavaScript Page</title><script> some JavaScript Codes... ...</script></head><body><h1> Your first JavaScript Program</h1><script> some JavaScript Codes...</script></body></html>6