April 21, 2009

0 JavaScript Functions

A function is a reusable code-block that will be executed by an event, or when the function is called

JavaScript Functions

To keep the browser from executing a script as soon as the page is loaded, you can write your own script as a function.

A function contains code that will be executed only by an event or by a call to that function.

You may call a function from anywhere within the page (or even from other pages if the function is embedded in an external.js file).

Functions are defined at the begining of the page, in the section.







0 comments:

Post a Comment

Blogger Themes

 
Powered by Blogger