Sunday, 28 July 2013

Changing behaviors with JavaScript

Changing behaviors with JavaScript

HTML is used to provide layout information and CSS is used to change the appearance of that layout. What does JavaScript do? JavaScript provides the behavior or actions behind the interactivity that you see on web pages. For example, when you click a button on a web page, chances are there’s a JavaScript program running behind the scenes in order to make the button do something like change a color or move text around on a page.

If you’ve ever used a site like Google’s Mail (Gmail) then you’ve seen a site with heavy JavaScript integration. One misconception about JavaScript is that it’s somehow related to Java: It isn’t. Java and JavaScript are two completely separate languages.

Don’t confuse JavaScript with Java; they’re completely different languages that do completely different things.

No comments:

Post a Comment