It is important to understand the differences between different browsers in order to handle each in the way it is…
Read More

It is important to understand the differences between different browsers in order to handle each in the way it is…
Read More
You can use JavaScript to create client-side image map. Client-side image maps are enabled by the usemap attribute for the…
Read More
Every now and then, developers commit mistakes while coding. A mistake in a program or a script is referred to…
Read More
The JavaScript navigator object includes a child object called plugins. This object is an array, with one entry for each…
Read More
You can use JavaScript to create a complex animation having, but not limited to, the following elements − Fireworks Fade…
Read More
Form validation normally used to occur at the server, after the client had entered all the necessary data and then…
Read More
There are three types of errors in programming: (a) Syntax Errors, (b) Runtime Errors, and (c) Logical Errors. Syntax Errors…
Read More
Every web page resides inside a browser window which can be considered as an object. A Document object represents the…
Read More
A regular expression is an object that describes a pattern of characters. The JavaScript RegExp class represents regular expressions, and…
Read More
The math object provides you properties and methods for mathematical constants and functions. Unlike other global objects, Math is not…
Read More
The Date object is a datatype built into the JavaScript language. Date objects are created with the new Date( )…
Read More
The Array object lets you store multiple values in a single variable. It stores a fixed-size sequential collection of elements…
Read More
The String object lets you work with a series of characters; it wraps Javascript’s string primitive data type with a…
Read More
The Boolean object represents two values, either “true” or “false”. If value parameter is omitted or is 0, -0, null,…
Read More
The Number object represents numerical date, either integers or floating-point numbers. In general, you do not need to worry about…
Read More
JavaScript is an Object Oriented Programming (OOP) language. A programming language can be called object-oriented if it provides four basic…
Read More
Many times you would like to place a button on your webpage to print the content of that web page…
Read More
void is an important keyword in JavaScript which can be used as a unary operator that appears before its single…
Read More
JavaScript supports three important types of dialog boxes. These dialog boxes can be used to raise and alert, or to…
Read More
What is Page Redirection ? You might have encountered a situation where you clicked a URL to reach a page…
Read More
What are Cookies ? Web Browsers and Servers use HTTP protocol to communicate and HTTP is a stateless protocol. But…
Read More
What is an Event ? JavaScript’s interaction with HTML is handled through events that occur when the user or the…
Read More
A function is a group of reusable code which can be called anywhere in your program. This eliminates the need…
Read More
JavaScript provides full control to handle loops and switch statements. There may be a situation when you need to come…
Read More
The for…in loop is used to loop through an object’s properties. As we have not discussed Objects yet, you may…
Read More
The ‘for‘ loop is the most compact form of looping. It includes the following three important parts − The loop…
Read More
While writing a program, you may encounter a situation where you need to perform an action over and over again.…
Read More
You can use multiple if…else…if statements, as in the previous chapter, to perform a multiway branch. However, this is not…
Read More
While writing a program, there may be a situation when you need to adopt one out of a given set…
Read More
What is an Operator? Let us take a simple expression 4 + 5 is equal to 9. Here 4 and…
Read More
JavaScript Datatypes One of the most fundamental characteristics of a programming language is the set of data types it supports.…
Read More
There is a flexibility given to include JavaScript code anywhere in an HTML document. However the most preferred ways to…
Read More
All the modern browsers come with built-in support for JavaScript. Frequently, you may need to enable or disable this support…
Read More
JavaScript can be implemented using JavaScript statements that are placed within the <script>… </script> HTML tags in a web page.…
Read More
JavaScript comments can be used to make the code more readable. JavaScript Comments Comments will not be executed by JavaScript.…
Read More
JavaScript is a sequence of statements to be executed by the browser. JavaScript Statements JavaScript statements are “commands” to the…
Read More
JavaScript is typically used to manipulate HTML elements. Manipulating HTML Elements To access an HTML element from JavaScript, you can…
Read More
JavaScript is the world’s most popular programming language. It is the language for HTML, for the web, for servers, PCs,…
Read More