Online
 
Sunday, 23 November 2008
 
 

JavaScript - Functions Scope | Print |  E-Mail
 
The statements within a function body have access to all global variables defined somewhere else in the document. The variables defined within a function body, however, can only be used inside the function itself. As soon as the function returns control to the calling statement, all variables declared within it are deleted and their memory freed.

The function itself has a global scope in the window in which it was defined. In the event that you need to call a function defined on a different frame, you will need to precede its name with the name of the frame, as follows:

parent.<frame name>.<function name>( <parameter list> );

Not preceding the non-local function with its frame name will cause the function to be undefined by the interpreter and will generate an error.

 

This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment. Tags: javascript, java script, html, free code, window, menu, form, popup, source, date calculator, calendar, javascripts, image, javascript help, javascript popup window, forms, calendars, games, Web design builder, webmaster, development.
Users' Comments (0)

Comment an article
  Name
  E-mail
   Title
Available characters: 4000
 Notify me of follow-up comments
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

Rokok Kretek Jumbo Coklat

“Terbuat dari tembakau, saos dan cengkeh pilihan kwalitas tinggi sehingga menghasilkan rokok dengan rasa yang cocok untuk segala cuaca”
Jumbo Coklat - Powered By G-Ads

 
Top! Top!