Category Archives: Tutorial

Objectives of Javascript Object and Events

At the end of this lesson you will be able to List the commonly used objects in JavaScript. List the properties and methods or the Document Object, Image Object and Event Object. Define an Event and Form event. Handle Events produced by the user with JavaScript codings.


Introduction to Javascript

5.0 Objective 5.1 Introduction  a) How to run Javascript? b) What can javascript do? c) Are java and javascript same? 5.2 Java Script Comments 5.3 Elements of Java script: 5.3.1 Data types: 5.3.2 Variable 5.4 Operators 5.4.1 Arithmetic Operators 5.4.2 Assignment Operators 5.4.3 Comparison Operators 5.4.4 Logical Operators 5.4.5 String Operators 5.4.6 Conditional Operators 5.5


Javascript basics Summary

Jscript is Microsoft’s version of JavaScript a scripting language that is standardized by the ECMA international as ECMA script. Often, JavaScript appear in the <head> section of the HTML document, the browse interprets the contents of the <head> section first. Function parseInt  converts its string arguments to an integer. JavaScript does not require variables to


5.6 Function

The best way to develop and maintain large programs is to construct it from small, simple pieces, or modules.  This technique is called divide and conquer.  Modules in JavaScrit are called functions. JavaScript programs are written by combining new functions that the programmer writes with prepackaged functions and objects available in JavaScript. The prepackages functions


5.5.7 for.. in Statement

The for … in statement is used to loop (iterate) through the elements of an array or through the properties of an object.  The code in the body of the for .. in loop is executed once for each element/property. Syntax: For(variable in object) {         Code to be executed } Example: <html> <body> <script


5.5.6 for repetation statement

The Javascript For loop resembles the for loop you might have seen in many other programming languages.  It is used when you need to do a set of operations many times, with an increment of some kind after each run through the block of code. Syntax: For (var = startvalue; var<=end value; var=var+increment) {         


5.5.5 statement

The while loop is used when you want the loop to execute and continue executing while the specified condition is true.  It tests the condition at the beginning of the loop, itself if the condition is true it executes the statements within the body of the loop or else it terminates. <html> <body> <script type


5.5.4 do..while statement

The do..while statement tests the condition after the loop body executes, therefore the loop body always executes at least once.  During testing, if  the condition is true it repeats the statement for the specified number of times or it terminates the loop execution. Syntax: Do Statement; While(condition);   Sample Programe: <html> <body> <script type =”text/javascript>


5.5.3 Switch multiple selection statement

Previously we discussed the if  single-selection statement and the if ..else double selection statement.   In certain situations a variable or expression is tested separately for each of value it may assume and different actions are taken for each value.  JavaScript provides the switch selection statement to handle such decision making. Syntax: Switch(n) { Case1: execute


5.5.2 Nested If..else

If (condition1) { Code to be executed if condition 1 is true } else if (condition2) { Code to be executed of condition 2 is true } else { Code to be executed if condition 1 and condition 2 are not true } • If there is several levels of indentation, each level should be


  • Email Subscription

    Sign-up for our email newsletter and get free job alerts, current affairs and GK updates regularly.

    Subscribe Here

  • Twitter Followers

    1306 people follow tut2learn
    gyogynovenyinfo gyogynov sahsvmrfsalem sahsvmrf vyasurendra vyasuren mohd_umar_afzal mohd_uma gagandhammi gagandha svpkiran svpkiran
Popup Dialog Box Powered By :
  • RSS
  • Facebook
  • Google+
  • Twitter