Javascript Tutorial For Beginners JavaScript / Getting Started
In this tutorial, you will learn how to: Create JavaScript tags and attributes; Embed and include an external js file; Output text with "write" and "writeln" methods; Use other document object methods; Create mesage boxes; Use variables and set up conditions; Create functions; Use event handlers to link with other page or open a new window; Check forms and access form elements; Display date and time; Open and control a window; Deal with frames.
Javascript timeout usage JavaScript / Getting Started
In this tutorial I will show you how to use timeouts in your JavaScript code. With this information you will be able to create a usefull timer.
Variables and Operators Explained JavaScript / Getting Started
A JavaScript tutorial aimed at beginners, or intermediate users with a hangover who suddenly forget how to turn numbers into strings and increment their variables. Includes working code examples for comparison, logical, compacted and other operators.
Conditional Statements JavaScript / Getting Started
Sometimes when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. Conditional statements are the set of commands used to perform different actions based on different conditions.
Loops JavaScript / Getting Started
JavaScript performs several types of repetitive operations, called "looping". Loops are set of instructions used to repeat the same block of code till a specified condition returns false or true depending on how you need it. To control the loops you can use counter variable that increments or decrements with each repetition of the loop.
Functions JavaScript / Getting Started
Sometimes instead of just adding your javascript to the page and having the browser perform the tasks as soon as the script is read, you might want your javascript to be performed only upon the detection of a certain event. A function is a block of code which can be called from any point in a script after it has been declared. It is basically a compartmentalized JavaScript designed to accomplish a single task.
Arrays JavaScript / Getting Started
Arrays are a fundamental part of most programming languages and scripts. Arrays are simply an ordered stack of data items. Each element of the array can store its own data, just like a variable, thus you can say arrays are collections of variables. Items can be added and removed from the array at any time, also their value can be changed easily. One other feature of the arrays, which is specific to JavaScript is that the elements in the array can be of different types.
Variables JavaScript / Getting Started
A variable's purpose is to store information so that it can be used later. A variable is a name, or identifier, that represents some data that you set. The name wraps up the data so you can move it around a lot easier, but the name is not the data! A variable's value can change during the script. You can refer to a variable by name to see its value or to change its value.
Prime or not JavaScript / Getting Started
This script is a slightly modified version of "Unique Random Numbers". In this script it becomes easier to implement more than one instances of "Picking Unique Random Numbers". This JavaScript picks up a number of unique random elements from an array.