We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
After completing this chapter, y;
+ Understand Javascript and its aay,
+ Add JavaScript to the web page”
Understand JavaScript statemeny
Create variables, pop-up box
Use functions in JavaScript
/ aNd
Introduction \
JavaScript is an event-driven, scripting language that 9,
functionality to web pages, such as the ability to inte, °° v "
event-driven programming language is one that respong.
user clicking a Submit or Calculate button.
JavaScript is a trademark of Sun Microsystems, today...
acquired Sun Microsystem in 2009. The language was orig,"
was later changed to JavaScript.
You can use JavaScript to change your static web Pages to g
message boxes and pop-up boxes; changing images when User rol}
page; validating form information, etc. S83 mg,
Most of the web pages use JavaScript language which nearly 2), wet
is a case-sensitive language which can be easily used with HTMLs ae
&
ADVANTAGES OF JAVASCRIPT (y.7
e JavaScript is very fast because it can be run immediately Within the!
It is relatively simple to learn and implement.
It is used everywhere on the web.
It plays easily with other languages and can be used in a huge var
It gives the ability to create rich interfaces.
Script )
De
(Scripts are short programs that you can write to add intera
instructions can be activated when an event occurs, such as when
Mouse pointer over an image) Scripts can also be activated autom
your page. You can write your own scripts but for that you
programming because scripts are written in Programming languag
aU Tea ae}
rc)nam 4 pe SM
yavascript Staten se
fe atatemant Is a cc
dentenor® voles Baitords, ex
ene rwins lample, Java
at to add a semicc
ee rere, pion 4) a
tional (according to the JavaScript st
oP (actne end of the statemer fi
tine
rhe Wh multiple statements in one line
code of Javascript is a sequen
the sequence they are a
gocumen
Bpeament-W=**° (SThi a
meter vesce
e the followin
g code to display 2 message =f
er an event 08
cnead™
escript pypertext/JavaschiPE>
gunction gispraymessage 0
{
alert Let's Learn Javascript!” yi