11. window.frames[i] in Javascript
By: David Flanagan : 2008-08-31
Description: The Window object defines the following properties. Non-portable, browser-specific properties are listed separately after this list. Note that the Window object is the Global object for client-side JavaScript; therefore the Window object also has the properties listed on the Global reference page.
Read the full article
 
12. Form validation using Javascript
By: David Flanagan : 2008-08-31
Description: The
tag supports an onsubmit event handler, which is triggered when the user tries to submit a form. You can use this event handler to perform validation: checking that all required fields have been filled in, for example. If the onsubmit handler returns false, the form is not submitted.
Read the full article
 
13. Using && in Javascript
By: Syed Fazal : 2008-08-16
Description: The logical AND operator in JavaScript is indicated by the double ampersand (&&):
Read the full article
 
14. The if statement in Javascript
By: Syed Fazal : 2008-08-16
Description: One of the most frequently used statements in JavaScript (and indeed, in many languages), is the if statement. The if statement has the following syntax:
Read the full article
 
15. do-while, while, for and for-in loops in Javascript
By: Syed Fazal : 2008-08-16
Description: Iterative statements, also called loop statements, specify certain commands to be executed repeatedly until some condition is met. The loops are often used to iterate the values of an array (hence the name) or to work though repetitious mathematical tasks. JavaScript provides four types of iterative statements to aid in the process.
Read the full article
 
16. break and continue in Javascript
By: Syed Fazal : 2008-08-16
Description: The break and continue statements provide stricter control over the execution of code in a loop. The break statement exits the loop immediately, preventing any further repetition of the code while the continue statement exits the current repetition. It does, however, allow further repetition based on the control expression.
Read the full article
 
17. switch in Javascript
By: Syed Fazal : 2008-08-16
Description: The cousin of the if statement, the switch statement, allows a developer to provide a series of cases for an expression. The syntax for the switch statement is:
Read the full article
 
18. Math object and Math functions in Javascript
By: Nicholas C. Zakas : 2008-08-16
Description: The Math object is the built-in object that you wish you had during those high school math classes: It knows all the formulas for the most complicated mathematical problems, and it can figure them out for you if you give it the numbers to work with. The Math object has several properties, consisting mostly of special values in the world of mathematics.
Read the full article
 
19. this keyword sample in Javascript
By: Nicholas C. Zakas : 2008-08-16
Description: One of the most important concepts to grasp in JavaScript is the use of the this keyword, which is used in object methods. The this keyword always points to the object that is calling a particular method, for example:
Read the full article
 
20. call() and apply() methods in Javascript
By: Nicholas C. Zakas : 2008-08-16
Description: The call() method is the method most similar to the classic object-masquerading method. Its first argument is the object to be used for this. All other arguments are passed directly to the function itself.
Read the full article
 

Previous      Next