Friday 10, February 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    Forum    |    About Us    |    Contact Us

Where use JavaScript

Where should I put JavaScript?
It depends. You have three choices. Since a web page can have multiple scripts, you can use them all on the same page! Scripts can be in the section, the section, or an external file.

Scripts in the section are loaded first, before the rest of the web page is loaded. Scripts in the section are loaded at their position on the web page.

Are scripts executed automatically?
Not all scripts are executed automatically. Scripts with functions are not executed until they are called. You will learn that a script can be called when it is triggered by an event. One such event is clicking a button.

What is an external script?
An external script is saved in a separate file, like an external style sheet. By convention, the filename with javaScript scripts ends with .js (for JavaScript, naturally).

How do I use an external script?
In the tag, add the src attribute to identify the location of the JavaScript file; for example:

 

 
     
   
JavaScript Tutorial
 
  Introduction
Introduction
  Object Oriented Programming
Object Oriented Programming
  How to
How to
  Where use JavaScript
Where use JavaScript
  Variables
Variables
  Operators
Operators
  if Statement
if Statement
  Switch Statement
Switch Statement
  Functions
Functions
  for Loop
for Loop
  while Loop
while Loop
  Popup Boxes
Popup Boxes
  break and continue Statements
break and continue Statements
  Events
Events
  Date and Time Object
Date and Time Object
  Special Characters
Special Characters
 
 
 
Web Designing Tutorials
  HTML Tutorial
HTML Tutorial
  DHTML Tutorial
DHTML  Tutorial
  CSS Tutorial
CSS Tutorial
  XHTML Tutorial
XHTML Tutorial
 
Programming Languages Tutorials
  C Language Tutorial
C Language Tutorial
  C++ Tutorial
C++ Tutorial
  Java Language Tutorial
Java Language Tutorial
  Data Structure Theory Tutorial
Data Structure Theory Tutorial
 
Server Side Scripting Tutorials
  PHP Tutorial
PHP Tutorial
  SQL Tutorial
SQL Tutorial
  ASP Tutorial
ASP Tutorial
 
Client Side Scripting Tutorials
  JavaScript Tutorial
JavaScript Tutorial
  VBScript Tutorial
VBScript Tutorial
 
 
 
POPULAR E-BOOKS
 
Download Art Gallery Theorems and Algorithms  Ebook Art Gallery Theorems and Algorithms
   
Download An Introduction to GCC  Ebook An Introduction to GCC
   
Download Ajax Design Patterns  Ebook Ajax Design Patterns
   
Download Algorithms in the Real World: Lecture Notes  Ebook Algorithms in the Real World: Lecture Notes
   
Download Learning GNU C  Ebook Learning GNU C
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz