Getting Started With JavaScript HTML is the core of a Web page. HTML, by its very nature, is static. All of its elements (<body>, <p>,
and so on) cannot change once the page has been parsed (loaded and
rendered). JavaScript can make your pages dynamic and interactive. JavaScript is an object-oriented, interpreted language, with a
syntax similar to C, C++ and Java. It is derived from C, as are C++ and
Java, but is meant to be usable by non-programmers. JavaScript is usually used for interacting and modifying pages after
it has loaded (client-side): for example, a clock displayed on a page
that updates itself to show the current time on the user's computer.
Server-side languages, such as PHP, or Perl
are the best way to modify a page before loading, although there are
some cases of Server-JavaScript (SJS). Not all browsers have a
JavaScript interpreter (such as the text-only browser Lynx),
or runs the latest version. Furthermore, some users turn off JavaScript
capabilities by choice. Generally, web pages should use JavaScript to
enhance the user's experience, rather than depend on it.