JavaScript Tutorial for start / PDF


 JavaScript Tutorial for start  / PDF




JavaScript Tutorial for start  / PDF







Table of Contents




Introduction 
Internal JavaScript Code
Functions
External JavaScript Code 
The body

Internal JavaScript Code

JavaScript code that is not found in a function is executed as the page containing it is loaded. To illustrate this, JavaScript code is placed in the head and body section of an HTML page.



JavaScript Example









JavaScript code found in a function is not executed until the function is called. If we modify the previous example by adding a function to return a string, the function is not loaded when the page is loaded.


JavaScript Example







The output will be the same........





Download JavaScript Tutorial for start  / PDF



JavaScript Tutorial for start  / PDF







0 commentaires: