What is an event in JavaScript? Any action that triggers the execution of JavaScript program code is called an event. Events are usually triggered by the web users. For example, clicking the mouse is an event, dragging the mouse over a hyperlink is also an event. There are three categories of events or rather event handlers in JavaScript, namely events associated with forms, events associated with links and events associated with windows. In this chapter, we shall only discuss the onClick event.
Author: Liew Voon Kiong
Creating Arrays in JavaScript
An array a regular data structure comprises individual elements that can be referenced to one or more integer index variables, the number of such indices being the number of dimensions or number of elements in the array.In JavaScript, an array is usually represented using the format arrayName[ i ], where i is the index or subscript which represents the position of the element within the array. The array always starts with the zeoth element. For example, an array A that consists 1of 0 elements comprises elements A[0], A[1], A[2], A[3], A[4],A[5], A[6], A[7], A[8] and A[9].
What is JavaScript?
What is JavaScript?
JavaScript is a scripting language that works with HTML to enhance web pages and make them more interactive.What is a scripting language? A script is made up of a sequence of statements that give instructions for the computer to perform certain tasks, for examples, like providing a response to the users, to play a song, to start a slide show, to display certain advertisements and so on. JavaScript can turn a web page into a lively interactive platform for the world wide web users! JavaScript is a scripting language for HTML. By using JavaScript , you can add sound, date, time, change the color of the web page according to certain day, prevalidate data entered into a form by the user before it is sent to the server, search through a database, set options based on users preferences and much more.
Read More here…
http://javascript-tutor.net/index.php/lesson-1-introduction-javascript/
What is JavaScript?
JavaScript is a scripting language that works with HTML to enhance web pages and make them more interactive.What is a scripting language? A script is made up of a sequence of statements that give instructions for the computer to perform certain tasks, for examples, like providing a response to the users, to play a song, to start a slide show, to display certain advertisements and so on. JavaScript can turn a web page into a lively interactive platform for the world wide web users! JavaScript is a scripting language for HTML. By using JavaScript , you can add sound, date, time, change the color of the web page according to certain day, prevalidate data entered into a form by the user before it is sent to the server, search through a database, set options based on users preferences and much more.
Creating Rollover Effects
We have learned how to create slide show in the previous lesson. In this lesson, we shall learn how to create rollover effect in JavaScript. Rollover means a webpage changes when the user moves his or her mouse over an object on the page. It is often used in advertising.
There are two ways to create rollover, using plain HTML or using a mixture of JavaScript and HTML . We will demonstrate the creation of rollovers using both methods.
Read more by viewing the new lesson below:
http://javascript-tutor.net/index.php/lesson-30-creating-rollover-effects-in-javascript/