Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

JavaScript Tutorial Part II - Function Basics

By Will Bontrager
2004-06-14


JavaScript Tutorial Part II - Function Basics

Unlike many programming languages, JavaScript can be written in bits and pieces. It may be interspersed with HTML code on a web page so long as the JavaScript conforms to its own programming language rules.

Understanding and using JavaScript programming language rules is the purpose of this article series.

Here is what this part of the tutorial covers:
   Using/Calling functions
   How to make your own functions

Note: This article contains both JavaScript and HTML code.
If you are reading this on an HTML-enabled email
program, you may need to "view source" for all the
code to be visible. To be sure you can see all of the
original article, view it in the archives -- it will
present the code correctly in your browser. See
http://willmaster.com/possibilities/archives/

As another alternative, you may wish to include this
article in a free custom ebook you can create at
http://lightfocus.com/ebook/

A JavaScript function is a block of code (one or more lines of JavaScript code together in a set) with a name.

The JavaScript language includes many functions, called built-in functions. You can also make your own functions.

"Netscape JavaScript Reference" and "Netscape - Client-Side JavaScript Guide" contain lists of built-in functions. The references are linked from http://search.netscape.com/Computers/Programming/Languages/JavaScript/References

The examples in this article make extensive use of the built-in function alert().

Tutorial Pages:
» JavaScript Tutorial Part II - Function Basics
» Using/Calling functions
» How to make your own functions


Copyright 2004 Bontrager Connection, LLC


 | Bookmark
Related Tutorials:
» JavaScript Debugging Techniques with Firebug
» Striped Tables Using JavaScript
» Opening PDFs in a New Window with JavaScript
» Essential Javascript -- A Javascript Tutorial
» Submit Forms Conditionally using JavaScript
» How to Setup a Randomising Function