Search Google

www.chagoyan.com

Mr. Chagoyan

Room 208 -Computer Lab

JavaScript

Background

JavaScript was developed by Netscape Communications Corporation and released with the Netscape browser in 1995. JavaScript is a scripting programming language that runs on your browser to make web pages interactive. Because JavaScript runs on the browser, it is considered a client-side scripting language.

JavaScript is still very popular and one of the top programming languages used today. Its syntax is very similar to Java and even PHP. Learning one of these languages makes it much easier to learn the others.

Top Programming Languages - TIOBE Programming Index

Examples of free JavaScripts for you Web pages - MyChallenge1

There are also several interesting JavaScript libraries for you to use. In this class we will use jQuery. Checkout what it can do:

Examples of free jQuery scripts for you Web pages- MyChallenge2

JavaScript can be implemented in four ways:
  1. In an external JavaScript document (just like CSS)
  2. In an internal script section located in the head of your Web page (just like CSS)
  3. In an internal script section located in the body of your Web page
  4. In an inline section located in an HTML tag (event handler) (just like CSS)
JavaScript allows you to make your Web page dynamic. For example you can:
  • Display the current date or date last modified on your web page
  • Add scrolling messages to your browser's status line
  • Validate the contents of a form
  • Display messages to users via message boxes
  • Detect plug-ins and notify users when plug-ins are required
JavaScript is usually coded in the following format:
<script language="javascript" type="text/javascript">

document.write("Hello World!");

</script>
The above code writes "Hello World!" into your Web page.

Here are some examples of Web pages utilizing the four aforementioned methods of implementing JavaScript. You will see Web pages with a variety of JavaScripts applied:


JavaScript1 - External JavaScript
JavaScript2 - Internal JavaScript in the HEAD section
JavaScript3 - Internal JavaScript in the BODY section
JavaScript4 - Inline JavaScript Code in an HTML tag

JavaScript Lecture

The DOM

The most powerful aspect of JavaScript is the DOM (Document Object Model). With the DOM you can use JavaScript to control your objects in your page. See W3schoolscom and play with the DOM objects using JavaScript.

Tutorial :JavaScript NetTuts

Tutorial: JQuery ThemeForest

Please visit these sites for JavaScript tutorials:

www.w3schools.com


Send me a message
FEEDBACK BOX

Name (optional)


Email (optional)
Word (optional)
Your IP Address is:
DropBox
Shared
Files