Advanced Java and Web Technologies for JNTUK
Blog providing beginner tutorials on different web technologies like HTML, CSS, Javascript, PHP, MYSQL, XML, Java Beans, Servlets, JSP and AJAX

User Defined Objects

11/02/2015 Categories: Javascript. No Comments on User Defined Objects

Creation and Manipulation of User Defined Objects An object is a real world entity that contains properties and behaviour. Properties are implemented as identifiers and behaviour is implemented using a set of methods. An object in JavaScript doesn’t contain any predefined type. In JavaScript the new operator is used to create a blank object with […]

Read the rest of this entry »

Input and Output

11/02/2015 Categories: Javascript. No Comments on Input and Output

Input and Output in JavaScript JavaScript models the HTML/XHTML document as the document object and the browser window which displays the HTML/XHTML document as the window object. The document object contains a method named write to output text and data on to the document as shown below: document.write(“Welcome to JavaScript”); To display multiple lines of […]

Read the rest of this entry »

Type Conversion in JavaScript

11/02/2015 Categories: Javascript. No Comments on Type Conversion in JavaScript

The mechanism of converting a value or variable from one type to another type is known as type conversion. There two types of type conversion: implicit type conversion and explicit type conversion.   Implicit Type Conversion: Type conversion which is performed automatically by the JavaScript interpreter is known as implicit type conversion or coercion. Implicit […]

Read the rest of this entry »

Built in objects in javascript

23/02/2014 Categories: Javascript. No Comments on Built in objects in javascript

To solve different kinds of problems, JavaScript provides various built-in objects. Each object contains properties and methods. Some of the built-in objects in Javascript are: Array Date Math String Number Array object:¬† The properties available on Array object are: Property Description length Returns the number of elements in the array constructor Returns the function that […]

Read the rest of this entry »

Event Handling in Javascript

23/02/2014 Categories: Javascript. No Comments on Event Handling in Javascript

The programming which allows computations based on the activities in a browser or by the activities performed by the user on the elements in a document is known as event-driven programming. An event is the specification (essentially an object created by the browser and JavaScript) of something significant has occurred. Examples of events are click, […]

Read the rest of this entry »

Functions in Javascript

23/02/2014 Categories: Javascript. No Comments on Functions in Javascript

A function is a block of code which can be executed again and again. Functions make the code modular which improves maintenance. Functions in JavaScript are similar to functions in C language. A function definition is as shown below:

The function definition consists of function header and the body of the function (a compound […]

Read the rest of this entry »
Scroll Up