JavaScript Tutorials

Date Difference Tutorial

A tutorial that calculates the difference between two dates

Calculating the difference between two dates in JavaScript is relatively straightforward, provided you choose the right Date methods to work with. Whichever way you get there, the potential applications on date differences are many, from counting down to a particular event, counting up from a past date, to dynamically indicating what's new on your page. Sounds like fun...

Image Slide Show Tutorial

A tutorial that shows how to build a image slide show

Apart from roll-over effects, this must be one of the most common questions I get asked regarding images: "How do I create an image slide show?" Well, there are many ways, the simplest and most efficient using JavaScript. In this tutorial, we will discuss all the necessary information you'll need to put together a cool image slide show using JavaScript....

Combo Link Menus Tutorial

A tutorial that shows how to create combo link menus

In this tutorial on the select element, we'll look at how to create a combo link menu, plus popular variations of it, such as one that navigates to a URL simply by selecting it from the list of options, one that uses an image as the "go" button etc...

Sessions Only Cookies Tutorial

A tutorial that shows how to create session only cookies

JavaScript cookies are the vehicle to persisting data between client requests. When a site requiring login remembers your username on return visits, for example, thank not Oreos, but these uneatable imposters.There are two types of JavaSript cookies- permanent, and session-only. ...

External JS Library Tutorial

A tutorial that shows how to create & reference external javascript libraries

Most "mainstream" programming languages such as C or Java support "code libraries", where a programmer can save a commonly used piece of code as a library file and reference it from the main program. Well, JavaScript supports external libraries too, in the form of the .js file ...

Windows Methods Tutorial

A tutorial that shows how to move, scroll & resize a window

The window object of JavaScript supports some controversial methods that let you perform tasks such as move the user's window, resize it, or scroll the page within it automatically/ programmatically. The philosophical issue aside, lets see how this is done....

Random Numbers Tutorial

A tutorial that shows how to generate weighed random numbers in JavaScript

In this tutorial, we take a stab at generating weighed random numbers, or random numbers with some more likely to show up than others. This is useful in situations where you need a more refined random engine, for example in a banner script that can display some banners more often than others....

Array Sort Tutorial

A tutorial that shows how to sort an array using Sort()

So you think you know all there is to know about arrays in JavaScript? Well, did you know, for example, that there exists a sort() method in arrays that allows you to easily sort its' values. Using this method, we can easily sort values either in alphabetical order ("be" is considered in front of "by"), or in numerical order (2,3..)....

Sending Objects Tutorial

A tutorial that shows how to send objects from one page to another

In this tutorial, we're going to give you several examples of doing precisely this. Specifically, we're going to cover:

Browser Detection Tutorial

A tutorial that shows how to determine browser type using object detection

This tutorial looks at how to detect support for a particular JavaScript property or method before attempting to invoke it. It serves as an alternate, in many cases, superior way to strict browser detection for creating cross browser friendly scripts....




Bookmark JavaScript Tutorials

Latest Blog Posts


Copyright 2008 Tech-FAQ. All rights reserved.