JSrcipt Tutorial
Lesson:
3
Sample Description:
Alert!
User Level:
1.New
2.Casual
3.Accomplished
4.Expert
|
About Lesson 3:
The
Alert!
sample is a simple usage of
how to Make an alert to the user.
When you are clicking on the button an
alert says something to you about how much
JavaScript is hard to learn!
Pay attention to the Events that are running
the functions that
are provided here.
|
|
Test the sample!
|
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<SCRIPT language=javascript>
<!--
function salaam2() {
window.alert ('Never worry about JavaScript!')
}
//-->
</SCRIPT>
<BODY bgcolor=white>
(Increment Sample!)
LANGUAGE=javascript onclick="return salaam3()">
</BODY>
</HTML>
|
|