Page 315 - Webapplication11_C11_Flipbook
P. 315

JAVASCRIPT PART 1                                                  4














                               Learning Outcomes




                  •  Static Websites                                       •  Dynamic Websites
                  •  Introducing to JavaScript                             •  Reason for Choosing JavaScript
                  •  Role of JavaScript in Web Development                 •  Prerequisites for Executing JavaScript Programs
                  •  Web Browser                                           •  What is a Script Tag?
                  •  JavaScript Syntax and Rules                           •  Basic Structure of a JavaScript Program
                  •  Common Errors in JavaScript                           •  The write() and writeln() Methods
                  •  Interacting with HTML                                 •  JavaScript Data Types
                  •  Statements in JavaScript                              •  Associativity and Operator Precedence
                  •  Math Object                                           •  String Operations
                  •  Type Conversions in JavaScript                        •  Interacting with User—Dialog Boxes
                  •  Types of Control Statements                           •  Decision Making
                  •  Looping Structure in JavaScript                       •  Jump Statements in JavaScript




                 The first version of HTML was introduced in 1993, and it simply displayed plain text on a web page. JavaScript was
                 invented in 1995 to give more flexibility and add functionality to web pages. A web page is traditionally made up of
                 three separate parts with separate responsibilities: HTML code defines the structure and meaning of the content on a
                 page, CSS code defines its appearance, and JavaScript code defines its behaviour.
                 In this unit, we will discuss about JavaScript. Both JavaScript and HTML are the required web technology languages
                 used to create a fully functional web application or web page. To put it simply, JavaScript improves the user interface
                 of the web page and makes a web page interactive, hence enhancing the user experience.
                   4.1 STATIC WEBSITES

                 A static website is made up of a certain number of web pages that have been pre-rendered and have had their structure
                 and content hardcoded. Users thus view the same content irrespective of their identity, location, or browser.
                 Once published, a static website remains unchanged and does not take into account changes in user action. Every page
                 that is a part of the website has HTML source code that must be manually edited if you wish to see something different.
                 Especially if you're upgrading a large website, this can take a lot of time.








                                                                                                  JavaScript Part 1  313
   310   311   312   313   314   315   316   317   318   319   320