Tutorials

Learn web design and programming with our free video and text tutorials.

Web Designer? Design and market your own professional website with easy-to-use tools.

Introduction to Javascript

Javascript is a client side scripting language that is used with and embeded within (X)HTML to add functionality to your web pages, validate forms, create cookies, detect web browsers and much more.

Javascript is the most popular client side scripting language in use on the internet and works in all of the major web browsers.

Before learning javascript, you should have at least a basic understanding of (X)HTML.

Javascript and Java

One common question for beginners is whether javascript and java are not the same, and the answer is no, they are 2 completely different languages.

Java is a much more complex object-oriented programming language that is modeled after C++ and is developed by Sun.

What can be done with javascript?

PHP runs on almost every operating system, including Windows, Linux, Mac OS and almost every variation of Unix.

What can PHP do?

  • Add Interactivity to Web Pages - Javascript can be used to add interactive elements to a web page such as drop-down menus and pop-up boxes.
  • Create Cookies - Javascript can be used to create cookies, which can be used to store information about a website visitor on their own computer
  • Validate Form Data - Javascript can be used to validate form data before it is submitted to a server, which keeps the server from having to do extra processing.
  • Detect a Visitor's Web Browser - Javascript can be used to detect a visitor's web browser.

Javascript can be either embeded within an (X)HTML file or entered directly into a web browser's url box. Javascript is most commonly embeded within an (X)HTML file.