Pages

Friday, 21 March 2014

JavaScript

A scripting language is a lightweight programming language. JavaScript is easy to learn.
JavaScript is a lightweight, interpreted programming language with object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages.

<script>
alert("My First JavaScript");
</script>

JavaScript Variables:

<script type="text/javascript">
var name = "Ali";
var money;
money = 2000.50;

</script>

What is an Event ?

JavaScript's interaction with HTML is handled through events that occur when the user or browser manipulates a page.

The onload and onunload Events

The onload and onunload events are triggered when the user enters or leaves the page.

No comments:

Post a Comment