Javascript for beginners Tutorials - Introduction To JavaScript
What is JavaScript?
JavaScript is an easy-to-use programming language that can be written directly into HTML documents.
It allows web developers to enhance the dynamics and interactive features of your page. JavaScript allows you perform calculations, check forms, customize graphics, create security passwords and more.
What's the difference between JavaScript and Java?
JavaScript and the Java have almost nothing in common except for the name. Java is an interpreted programming language, it is coded in a similar fashion to C++, with separate header and class files, compiled together prior to execution.
Embedding JavaScript into an HTML Document
Adding JavaScript to a web page is actually very easy! To add a JavaScript all you need to add is the following, either between the
tags or between the tags.
Example:
The tags are used to hide comments in HTML from the browser. Old browsers will not understand the
So now lets look at a sample html page that uses Javascript:
![]() |
