Page 67 - Trackpad_V1_Book 8_Flipbook
P. 67
In the previous classes, we have learnt to create web pages using HTML. HTML uses many tags
to tell the browser how to display the content on web browsers. The web pages we have learnt to
create were static in nature and were not interactive. We need to use another scripting language
along with HTML to make web pages interactive and dynamic in nature. JavaScript is one such
type of scripting languages.
JAVASCRIPT—A SCRIPTING LANGUAGE
JavaScript, often abbreviated as JS, is a client-side scripting language used for enhancing
users’ interaction with the web page by making web pages dynamic. The meaning of
client-side scripting language is that the code written in JavaScript is interpreted by the web
browser on which the web page is running. With the help of JavaScript, we can add different
types of functionalities to our web pages like taking input from the user, validating the user
input, displaying pop-up boxes, etc.
Alongside HTML5 and CSS, JavaScript is one of the core languages of the World Wide Web (WWW).
It was developed by Brendan Eich, a Netscape Communications Corporation programmer, in
1995. He took only 10 days to develop the language.
PURE
There are about 1.7 billion websites on the Internet from which 95% websites use
JavaScript. FACT
FEATURES OF JAVASCRIPT
Some of the important features of JavaScript are as follows:
It is used in both client-side and server-side applications.
It is platform-independent, hence, it runs on many operating systems.
It is used with HTML code and runs on web browsers.
It is a case-sensitive and interpreted language.
It is used to validate user input for errors.
USING JAVASCRIPT
JavaScript cannot run on its own because it is a scripting language, and hence, needs to be
embedded within an HTML code.
In HTML5, we can use JavaScript in two ways: internally and externally.
Dynamic Web Pages in HTML5 65

