WHAT A LAMP Rotating Header Image

What is Javascript

What is ?

* was designed to add interactivity to HTML pages
* is a scripting language (a scripting language is a lightweight programming language)
* A consists of lines of executable computer code
* A is usually embedded directly into HTML pages
* is an interpreted language (means that scripts execute without preliminary compilation)
* Everyone can use without purchasing a license

Are Java and the Same?

NO!

Java and are two completely different languages in both concept and design!

Java (developed by Sun Microsystems) is a powerful and much more complex programming language – in the same category as C and C++.


What can a Do?

* gives HTML designers a programming tool – HTML authors are normally not programmers, but is a scripting language with a very simple syntax! Almost anyone can put small “snippets” of code into their HTML pages
* can put dynamic text into an HTML page – A statement like this: document.write(“<h1>" + name + "</h1>”) can write a variable text into an HTML page
* can react to events – A can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element
* can read and write HTML elements – A can read and change the content of an HTML element
* can be used to validate data – A can be used to validate form data before it is submitted to a server. This saves the server from extra processing
* can be used to detect the visitor’s browser – A can be used to detect the visitor’s browser, and – depending on the browser – load another page specifically designed for that browser
* can be used to create cookies – A can be used to store and retrieve information on the visitor’s computer

Related posts

Comments are closed.